[Bug c/84721] New: [8 Regression] ICE in c_push_function_context, at c-decl.c:9667
gscfq@t-online.de
gcc-bugzilla@gcc.gnu.org
Mon Mar 5 18:07:00 GMT 2018
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84721
Bug ID: 84721
Summary: [8 Regression] ICE in c_push_function_context, at
c-decl.c:9667
Product: gcc
Version: 8.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c
Assignee: unassigned at gcc dot gnu.org
Reporter: gscfq@t-online.de
Target Milestone: ---
Changed between 20171210 and 20171217 (ICE at -O[gs123]) :
$ cat z1.c
int a[({ int b })];
$ cat z3.c
int a[({ int f() {}; })];
$ gcc-8-20171210 -g -O2 -c z1.c
z1.c:1:7: error: braced-group within expression allowed only inside a function
int a[({ int b })];
^
$ gcc-8-20180304 -g -O2 -c z1.c
z1.c:1:1: internal compiler error: Segmentation fault
int a[({ int b })];
^~~
0xaed10f crash_signal
../../gcc/toplev.c:325
0x6761df c_push_function_context()
../../gcc/c/c-decl.c:9667
0x6b3ef5 c_parser_declaration_or_fndef
../../gcc/c/c-parser.c:2242
0x6b2292 c_parser_compound_statement_nostart
../../gcc/c/c-parser.c:5001
0x6999a8 c_parser_postfix_expression
../../gcc/c/c-parser.c:7943
0x6a2682 c_parser_unary_expression
../../gcc/c/c-parser.c:7262
0x6a3437 c_parser_cast_expression
../../gcc/c/c-parser.c:7103
0x6a3703 c_parser_binary_expression
../../gcc/c/c-parser.c:6906
0x6a4745 c_parser_conditional_expression
../../gcc/c/c-parser.c:6644
0x6a4cd0 c_parser_expr_no_commas
../../gcc/c/c-parser.c:6561
0x6b142a c_parser_direct_declarator_inner
../../gcc/c/c-parser.c:3815
0x6b305f c_parser_declaration_or_fndef
../../gcc/c/c-parser.c:1989
0x6b9be3 c_parser_external_declaration
../../gcc/c/c-parser.c:1644
0x6ba659 c_parser_translation_unit
../../gcc/c/c-parser.c:1524
0x6ba659 c_parse_file()
../../gcc/c/c-parser.c:18410
0x6fd2d5 c_common_parse_file()
../../gcc/c-family/c-opts.c:1132
More information about the Gcc-bugs
mailing list