public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/60189] New: ICE with invalid use of _Cilk_sync
@ 2014-02-13 23:10 reichelt at gcc dot gnu.org
  2014-02-13 23:12 ` [Bug c++/60189] " reichelt at gcc dot gnu.org
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: reichelt at gcc dot gnu.org @ 2014-02-13 23:10 UTC (permalink / raw)
  To: gcc-bugs

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.]


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2014-08-03 21:10 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-02-13 23:10 [Bug c++/60189] New: ICE with invalid use of _Cilk_sync reichelt at gcc dot gnu.org
2014-02-13 23:12 ` [Bug c++/60189] " reichelt at gcc dot gnu.org
2014-03-04  8:30 ` izamyatin at gmail dot com
2014-03-04  8:53 ` izamyatin at gmail dot com
2014-05-21  8:03 ` kyukhin at gcc dot gnu.org
2014-05-21  8:06 ` kyukhin at gcc dot gnu.org
2014-08-03 21:10 ` reichelt at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).