[Bug c++/104667] New: [10/11/12 Regression] ICE in is_late_template_attribute, at cp/decl2.cc:1299
gscfq@t-online.de
gcc-bugzilla@gcc.gnu.org
Wed Feb 23 17:58:20 GMT 2022
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104667
Bug ID: 104667
Summary: [10/11/12 Regression] ICE in
is_late_template_attribute, at cp/decl2.cc:1299
Product: gcc
Version: 12.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: gscfq@t-online.de
Target Milestone: ---
Started between 20191117 and 20191124 :
$ cat z1.cc
template <class> class A
{ enum { e __attribute__ ((access)) }; };
$ g++-12-20220220 -c z1.cc
z1.cc:2:35: internal compiler error: Segmentation fault
2 | { enum { e __attribute__ ((access)) }; };
| ^
0xda25ef crash_signal
../../gcc/toplev.cc:322
0x7522cc is_late_template_attribute
../../gcc/cp/decl2.cc:1299
0x7522cc splice_template_attributes(tree_node**, tree_node*)
../../gcc/cp/decl2.cc:1340
0x752b1e cplus_decl_attributes(tree_node**, tree_node*, int)
../../gcc/cp/decl2.cc:1662
0x74312e build_enumerator(tree_node*, tree_node*, tree_node*, tree_node*,
unsigned int)
../../gcc/cp/decl.cc:16590
0x7ebcb3 cp_parser_enumerator_definition
../../gcc/cp/parser.cc:21162
0x7ebcb3 cp_parser_enumerator_list
../../gcc/cp/parser.cc:21082
0x7ebcb3 cp_parser_enum_specifier
../../gcc/cp/parser.cc:21012
0x7ebcb3 cp_parser_type_specifier
../../gcc/cp/parser.cc:19318
0x7ec1a6 cp_parser_decl_specifier_seq
../../gcc/cp/parser.cc:15911
0x81304a cp_parser_member_declaration
../../gcc/cp/parser.cc:26965
0x7e968e cp_parser_member_specification_opt
../../gcc/cp/parser.cc:26821
0x7e968e cp_parser_class_specifier_1
../../gcc/cp/parser.cc:25887
0x7eb670 cp_parser_class_specifier
../../gcc/cp/parser.cc:26204
0x7eb670 cp_parser_type_specifier
../../gcc/cp/parser.cc:19348
0x7ec1a6 cp_parser_decl_specifier_seq
../../gcc/cp/parser.cc:15911
0x811d2b cp_parser_single_declaration
../../gcc/cp/parser.cc:31648
0x812165 cp_parser_template_declaration_after_parameters
../../gcc/cp/parser.cc:31311
0x81293b cp_parser_explicit_template_declaration
../../gcc/cp/parser.cc:31577
0x81293b cp_parser_template_declaration_after_export
../../gcc/cp/parser.cc:31596
More information about the Gcc-bugs
mailing list