[Bug c++/107321] New: [10/11/12/13 Regression] ICE in strip_array_types, at tree.cc:7284
gscfq@t-online.de
gcc-bugzilla@gcc.gnu.org
Wed Oct 19 17:34:51 GMT 2022
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107321
Bug ID: 107321
Summary: [10/11/12/13 Regression] ICE in strip_array_types, at
tree.cc:7284
Product: gcc
Version: 13.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: gscfq@t-online.de
Target Milestone: ---
Started with r10 between 20191103 and 20191110:
$ cat z1.cc
template <typename A, typename... T>
void f (T... b)
{
bool operator == (A x, A y) = default;
}
$ gcc-13-20221016 -c z1.cc -std=c++2a
z1.cc: In function 'void f(T ...)':
z1.cc:4:29: warning: declaration of 'bool operator==(A, A)' has 'extern' and is
initialized
4 | bool operator == (A x, A y) = default;
| ^
z1.cc:4:33: internal compiler error: Segmentation fault
4 | bool operator == (A x, A y) = default;
| ^~~~~~~
0xe7a2ff crash_signal
../../gcc/toplev.cc:314
0x110aee0 strip_array_types(tree_node*)
../../gcc/tree.cc:7284
0x957988 cp_type_quals(tree_node const*)
../../gcc/cp/typeck.cc:11451
0x94f713 cp_build_qualified_type(tree_node*, int, int)
../../gcc/cp/tree.cc:1378
0x9595d6 same_type_ignoring_top_level_qualifiers_p(tree_node*, tree_node*)
../../gcc/cp/typeck.cc:1745
0x85a805 early_check_defaulted_comparison
../../gcc/cp/method.cc:1227
0x85a805 defaultable_fn_check(tree_node*)
../../gcc/cp/method.cc:3433
0x815f28 cp_finish_decl(tree_node*, tree_node*, bool, tree_node*, int)
../../gcc/cp/decl.cc:8247
0x8de9e4 cp_parser_init_declarator
../../gcc/cp/parser.cc:22895
0x8baca2 cp_parser_simple_declaration
../../gcc/cp/parser.cc:15284
0x8bc569 cp_parser_declaration_statement
../../gcc/cp/parser.cc:14365
0x8bcb5b cp_parser_statement
../../gcc/cp/parser.cc:12436
0x8bdb24 cp_parser_statement_seq_opt
../../gcc/cp/parser.cc:12853
0x8bdbdf cp_parser_compound_statement
../../gcc/cp/parser.cc:12805
0x8ddb08 cp_parser_function_body
../../gcc/cp/parser.cc:25179
0x8ddb08 cp_parser_ctor_initializer_opt_and_function_body
../../gcc/cp/parser.cc:25230
0x8ddfc6 cp_parser_function_definition_after_declarator
../../gcc/cp/parser.cc:31387
0x8df149 cp_parser_function_definition_from_specifiers_and_declarator
../../gcc/cp/parser.cc:31304
0x8df149 cp_parser_init_declarator
../../gcc/cp/parser.cc:22633
0x8e1f43 cp_parser_single_declaration
../../gcc/cp/parser.cc:31903
More information about the Gcc-bugs
mailing list