https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84325

--- Comment #5 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Unfortunately the patch for 83692 didn't fix it; the ICE now looks like:

$ ./cc1plus -quiet 84325.C
84325.C:10:45: internal compiler error: tree check: did not expect class
‘type’, have ‘type’ (record_type) in replace_placeholders_r, at cp/tree.c:3094
   constexpr static seconds time_to_wait{10_s};
                                             ^
0x15d4e70 tree_not_class_check_failed(tree_node const*, tree_code_class, char
const*, int, char const*)
        /home/marek/src/gcc/gcc/tree.c:9434
0x825fcb non_type_check(tree_node*, char const*, int, char const*)
        /home/marek/src/gcc/gcc/tree.h:3311
0xac9308 replace_placeholders_r
        /home/marek/src/gcc/gcc/cp/tree.c:3094
0x15dea23 walk_tree_1(tree_node**, tree_node* (*)(tree_node**, int*, void*),
void*, hash_set<tree_node*, default_hash_traits<tree_node*> >*, tree_node*
(*)(tree_node**, int*, tree_node* (*)(tree_node**, int*, void*), void*,
hash_set<tree_node*, default_hash_traits<tree_node*> >*))
        /home/marek/src/gcc/gcc/tree.c:11400
0xad0d3c cp_walk_subtrees(tree_node**, int*, tree_node* (*)(tree_node**, int*,
void*), void*, hash_set<tree_node*, default_hash_traits<tree_node*> >*)
        /home/marek/src/gcc/gcc/cp/tree.c:4779
0x15deb2f walk_tree_1(tree_node**, tree_node* (*)(tree_node**, int*, void*),
void*, hash_set<tree_node*, default_hash_traits<tree_node*> >*, tree_node*
(*)(tree_node**, int*, tree_node* (*)(tree_node**, int*, void*), void*,
hash_set<tree_node*, default_hash_traits<tree_node*> >*))
        /home/marek/src/gcc/gcc/tree.c:11423
0xac9848 replace_placeholders(tree_node*, tree_node*, bool*)
        /home/marek/src/gcc/gcc/cp/tree.c:3181
0xb0bf05 store_init_value(tree_node*, tree_node*, vec<tree_node*, va_gc,
vl_embed>**, int)
        /home/marek/src/gcc/gcc/cp/typeck2.c:851
0x8c9484 check_initializer
        /home/marek/src/gcc/gcc/cp/decl.c:6384
0x8cbe24 cp_finish_decl(tree_node*, tree_node*, bool, tree_node*, int)
        /home/marek/src/gcc/gcc/cp/decl.c:6937
0x8fad83 finish_static_data_member_decl(tree_node*, tree_node*, bool,
tree_node*, int)
        /home/marek/src/gcc/gcc/cp/decl2.c:804
0x8fbccc grokfield(cp_declarator const*, cp_decl_specifier_seq*, tree_node*,
bool, tree_node*, tree_node*)
        /home/marek/src/gcc/gcc/cp/decl2.c:993
0x9c8a03 cp_parser_member_declaration
        /home/marek/src/gcc/gcc/cp/parser.c:23880
0x9c7a67 cp_parser_member_specification_opt
        /home/marek/src/gcc/gcc/cp/parser.c:23354
0x9c5754 cp_parser_class_specifier_1
        /home/marek/src/gcc/gcc/cp/parser.c:22496
0x9c64df cp_parser_class_specifier
        /home/marek/src/gcc/gcc/cp/parser.c:22748
0x9b9d29 cp_parser_type_specifier
        /home/marek/src/gcc/gcc/cp/parser.c:16754
0x9b46b1 cp_parser_decl_specifier_seq
        /home/marek/src/gcc/gcc/cp/parser.c:13612
0x9ce64d cp_parser_single_declaration
        /home/marek/src/gcc/gcc/cp/parser.c:27060
0x9cd8fb cp_parser_template_declaration_after_parameters
        /home/marek/src/gcc/gcc/cp/parser.c:26752
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.

Reply via email to