https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97871
Bug ID: 97871
Summary: [11 Regression] ICE in cp_parser_declaration, at
cp/parser.c:13539
Product: gcc
Version: 11.0
Status: UNCONFIRMED
Keywords: ice-on-invalid-code
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: asolokha at gmx dot com
Target Milestone: ---
g++-11.0.0-alpha20201115 snapshot (g:c746fc40f4ec8cfc1092efd49d567751858d2099)
ICEs when compiling the following testcase:
__attribute__ (()) int a;
% g++-11.0.0 -c m9icxpkn.c
m9icxpkn.c:1:18: internal compiler error: in cp_parser_declaration, at
cp/parser.c:13539
1 | __attribute__ (()) int a;
| ^
0x66df89 cp_parser_declaration
/var/tmp/portage/sys-devel/gcc-11.0.0_alpha20201115/work/gcc-11-20201115/gcc/cp/parser.c:13539
0xa06d49 cp_parser_translation_unit
/var/tmp/portage/sys-devel/gcc-11.0.0_alpha20201115/work/gcc-11-20201115/gcc/cp/parser.c:4806
0xa06d49 c_parse_file()
/var/tmp/portage/sys-devel/gcc-11.0.0_alpha20201115/work/gcc-11-20201115/gcc/cp/parser.c:44595
0xb2a45d c_common_parse_file()
/var/tmp/portage/sys-devel/gcc-11.0.0_alpha20201115/work/gcc-11-20201115/gcc/c-family/c-opts.c:1196