[Bug c++/60189] New: ICE with invalid use of _Cilk_sync
reichelt at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Thu Feb 13 23:10:00 GMT 2014
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60189
Bug ID: 60189
Summary: ICE with invalid use of _Cilk_sync
Product: gcc
Version: 4.9.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: reichelt at gcc dot gnu.org
The following invalid code snippet (compiled with "-fcilkplus")
triggers an ICE on trunk:
=======================
void foo()
{
_Cilk_sync return;
}
=======================
bug.cc: In function 'void foo()':
bug.cc:5:3: internal compiler error: Segmentation fault
_Cilk_sync return;
^
0xba523f crash_signal
../../gcc/gcc/toplev.c:337
0x6b9008 cp_parser_expression_statement
../../gcc/gcc/cp/parser.c:9635
0x6ae398 cp_parser_statement
../../gcc/gcc/cp/parser.c:9473
0x6af169 cp_parser_statement_seq_opt
../../gcc/gcc/cp/parser.c:9745
0x6af2d6 cp_parser_compound_statement
../../gcc/gcc/cp/parser.c:9699
0x6c34ab cp_parser_function_body
../../gcc/gcc/cp/parser.c:18641
0x6c34ab cp_parser_ctor_initializer_opt_and_function_body
../../gcc/gcc/cp/parser.c:18677
0x6c77f2 cp_parser_function_definition_after_declarator
../../gcc/gcc/cp/parser.c:22792
0x6c8691 cp_parser_function_definition_from_specifiers_and_declarator
../../gcc/gcc/cp/parser.c:22704
0x6c8691 cp_parser_init_declarator
../../gcc/gcc/cp/parser.c:16585
0x6c9929 cp_parser_simple_declaration
../../gcc/gcc/cp/parser.c:11205
0x6acc13 cp_parser_block_declaration
../../gcc/gcc/cp/parser.c:11086
0x6d3ec2 cp_parser_declaration
../../gcc/gcc/cp/parser.c:10983
0x6d2bb8 cp_parser_declaration_seq_opt
../../gcc/gcc/cp/parser.c:10869
0x6d445a cp_parser_translation_unit
../../gcc/gcc/cp/parser.c:4014
0x6d445a c_parse_file()
../../gcc/gcc/cp/parser.c:31536
0x7f37c3 c_common_parse_file()
../../gcc/gcc/c-family/c-opts.c:1060
Please submit a full bug report, [etc.]
More information about the Gcc-bugs
mailing list