https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69798
Bug ID: 69798 Summary: ICE on invalid code on x86_64-linux-gnu in c_parser_braced_init, at c/c-parser.c:4338 Product: gcc Version: 6.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: su at cs dot ucdavis.edu Target Milestone: --- The following code causes an ICE when compiled with the current gcc trunk on x86_64-linux-gnu. It is a regression from 5.3.x. $ gcc-trunk -v Using built-in specs. COLLECT_GCC=gcc-trunk COLLECT_LTO_WRAPPER=/usr/local/gcc-trunk/libexec/gcc/x86_64-pc-linux-gnu/6.0.0/lto-wrapper Target: x86_64-pc-linux-gnu Configured with: ../gcc-trunk/configure --prefix=/usr/local/gcc-trunk --enable-languages=c,c++ --disable-werror --enable-multilib Thread model: posix gcc version 6.0.0 20160212 (experimental) [trunk revision 233377] (GCC) $ $ $ $ gcc-5.3 -c small.c small.c: In function ‘main’: small.c:4:3: error: -fcilkplus must be enabled to use ‘_Cilk_spawn’ _Cilk_spawn (void); ^ small.c:4: confused by earlier errors, bailing out $ $ $ $ gcc-trunk -c small.c small.c: In function ‘main’: small.c:4:3: error: -fcilkplus must be enabled to use ‘_Cilk_spawn’ _Cilk_spawn (void); ^~~~~~~~~~~ small.c:4:3: internal compiler error: in c_parser_braced_init, at c/c-parser.c:4338 0x628b9d c_parser_braced_init ../../gcc-trunk/gcc/c/c-parser.c:4338 0x628da0 c_parser_postfix_expression_after_paren_type ../../gcc-trunk/gcc/c/c-parser.c:8092 0x61ed02 c_parser_postfix_expression ../../gcc-trunk/gcc/c/c-parser.c:7521 0x61f173 c_parser_postfix_expression ../../gcc-trunk/gcc/c/c-parser.c:8013 0x6202ba c_parser_unary_expression ../../gcc-trunk/gcc/c/c-parser.c:6876 0x6210b7 c_parser_cast_expression ../../gcc-trunk/gcc/c/c-parser.c:6705 0x6212d5 c_parser_binary_expression ../../gcc-trunk/gcc/c/c-parser.c:6514 0x622045 c_parser_conditional_expression ../../gcc-trunk/gcc/c/c-parser.c:6285 0x6226e0 c_parser_expr_no_commas ../../gcc-trunk/gcc/c/c-parser.c:6202 0x622e42 c_parser_expression ../../gcc-trunk/gcc/c/c-parser.c:8387 0x623889 c_parser_expression_conv ../../gcc-trunk/gcc/c/c-parser.c:8420 0x63d001 c_parser_statement_after_labels ../../gcc-trunk/gcc/c/c-parser.c:5275 0x63ec9b c_parser_compound_statement_nostart ../../gcc-trunk/gcc/c/c-parser.c:4859 0x63f51e c_parser_compound_statement ../../gcc-trunk/gcc/c/c-parser.c:4695 0x63b084 c_parser_declaration_or_fndef ../../gcc-trunk/gcc/c/c-parser.c:2107 0x6467dd c_parser_external_declaration ../../gcc-trunk/gcc/c/c-parser.c:1551 0x647209 c_parser_translation_unit ../../gcc-trunk/gcc/c/c-parser.c:1429 0x647209 c_parse_file() ../../gcc-trunk/gcc/c/c-parser.c:17826 0x6a85d2 c_common_parse_file() ../../gcc-trunk/gcc/c-family/c-opts.c:1064 Please submit a full bug report, with preprocessed source if appropriate. Please include the complete backtrace with any bug report. See <http://gcc.gnu.org/bugs.html> for instructions. $ -------------------------- int main () { _Cilk_spawn (void); return 0; }