https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84959
Bug ID: 84959
Summary: internal compiler error: in store_binding, at
cp/name-lookup.c:6549
(store_binding()/store_class_binding())
Product: gcc
Version: 8.0.1
Status: UNCONFIRMED
Keywords: ice-on-invalid-code
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: vegard.nossum at oracle dot com
CC: webrown.cpp at gmail dot com
Target Milestone: ---
Input:
class {
void a() {
struct {
virtual void b();
union b
}
}
char b;
};
Output:
$ cc1plus
void<unnamed class>::a()
<stdin>:6:5: error: expected unqualified-id before '}' token
<stdin>:3:12: internal compiler error: in store_binding, at
cp/name-lookup.c:6549
0xe2f887 store_binding
/home/vegard/git/gcc/gcc/cp/name-lookup.c:6549
0xe2f887 store_class_bindings
/home/vegard/git/gcc/gcc/cp/name-lookup.c:6611
0xe30189 do_push_to_top_level
/home/vegard/git/gcc/gcc/cp/name-lookup.c:6657
0xe4cec0 do_push_nested_namespace
/home/vegard/git/gcc/gcc/cp/name-lookup.c:6751
0xe4d654 push_nested_namespace(tree_node*)
/home/vegard/git/gcc/gcc/cp/name-lookup.c:7037
0x120b92f push_abi_namespace
/home/vegard/git/gcc/gcc/cp/rtti.c:149
0x120b92f get_tinfo_desc
/home/vegard/git/gcc/gcc/cp/rtti.c:1449
0x120b552 get_tinfo_desc
/home/vegard/git/gcc/gcc/cp/rtti.c:1330
0x121092e get_tinfo_decl(tree_node*)
/home/vegard/git/gcc/gcc/cp/rtti.c:452
0x9ac8bf build_rtti_vtbl_entries
/home/vegard/git/gcc/gcc/cp/class.c:9636
0x9ac8bf build_vtbl_initializer
/home/vegard/git/gcc/gcc/cp/class.c:9151
0x9ac8bf dfs_accumulate_vtbl_inits
/home/vegard/git/gcc/gcc/cp/class.c:9075
0x9ac8bf accumulate_vtbl_inits
/home/vegard/git/gcc/gcc/cp/class.c:8978
0x9e45a1 finish_vtbls
/home/vegard/git/gcc/gcc/cp/class.c:8609
0x9e45a1 finish_struct_1(tree_node*)
/home/vegard/git/gcc/gcc/cp/class.c:6905
0x9ebe54 finish_struct(tree_node*, tree_node*)
/home/vegard/git/gcc/gcc/cp/class.c:7065
0xf144c3 cp_parser_class_specifier_1
/home/vegard/git/gcc/gcc/cp/parser.c:22524
0xf231cb cp_parser_class_specifier
/home/vegard/git/gcc/gcc/cp/parser.c:22768
0xf231cb cp_parser_type_specifier
/home/vegard/git/gcc/gcc/cp/parser.c:16774
0xf8858a cp_parser_decl_specifier_seq
/home/vegard/git/gcc/gcc/cp/parser.c:13629
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <https://gcc.gnu.org/bugs/> for instructions.
Version:
GNU C++14 (GCC) version 8.0.1 20180306 (experimental) (x86_64-pc-linux-gnu)