public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "reichelt at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/60197] New: ICE with _Cilk_spawn in expression
Date: Fri, 14 Feb 2014 15:25:00 -0000	[thread overview]
Message-ID: <bug-60197-4@http.gcc.gnu.org/bugzilla/> (raw)

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60197

            Bug ID: 60197
           Summary: ICE with _Cilk_spawn in expression
           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 valid(?) code snippet (compiled with "-fcilkplus") triggers
an ICE on trunk:

===========================================
int foo()
{
  return (_Cilk_spawn foo()) + 1;
}
===========================================

gimplification failed:
 <statement_list 0x7f6dc2014420
    type <void_type 0x7f6dc1eed000 void VOID
        align 8 symtab 0 alias set -1 canonical type 0x7f6dc1eed000
        pointer_to_this <pointer_type 0x7f6dc1eed0a8>>
    head (nil) tail (nil) stmts
>
bug.c: In function 'foo':
bug.c:9:30: internal compiler error: gimplification failed
   return (_Cilk_spawn foo()) + 1;
                              ^
0x84252a gimplify_expr(tree_node**, gimple_statement_base**,
gimple_statement_base**, bool (*)(tree_node*), int)
        ../../gcc/gcc/gimplify.c:8356
0x8411dc gimplify_expr(tree_node**, gimple_statement_base**,
gimple_statement_base**, bool (*)(tree_node*), int)
        ../../gcc/gcc/gimplify.c:8135
0x83e6fb gimplify_modify_expr
        ../../gcc/gcc/gimplify.c:4507
0x84058b gimplify_expr(tree_node**, gimple_statement_base**,
gimple_statement_base**, bool (*)(tree_node*), int)
        ../../gcc/gcc/gimplify.c:7448
0x844726 gimplify_stmt(tree_node**, gimple_statement_base**)
        ../../gcc/gcc/gimplify.c:5341
0x842c1e gimplify_and_add
        ../../gcc/gcc/gimplify.c:384
0x842c1e gimplify_return_expr
        ../../gcc/gcc/gimplify.c:1241
0x842c1e gimplify_expr(tree_node**, gimple_statement_base**,
gimple_statement_base**, bool (*)(tree_node*), int)
        ../../gcc/gcc/gimplify.c:7695
0x844726 gimplify_stmt(tree_node**, gimple_statement_base**)
        ../../gcc/gcc/gimplify.c:5341
0x840cd6 gimplify_and_add
        ../../gcc/gcc/gimplify.c:384
0x840cd6 gimplify_expr(tree_node**, gimple_statement_base**,
gimple_statement_base**, bool (*)(tree_node*), int)
        ../../gcc/gcc/gimplify.c:7785
0x844726 gimplify_stmt(tree_node**, gimple_statement_base**)
        ../../gcc/gcc/gimplify.c:5341
0x84084b gimplify_statement_list
        ../../gcc/gcc/gimplify.c:1412
0x84084b gimplify_expr(tree_node**, gimple_statement_base**,
gimple_statement_base**, bool (*)(tree_node*), int)
        ../../gcc/gcc/gimplify.c:7863
0x844726 gimplify_stmt(tree_node**, gimple_statement_base**)
        ../../gcc/gcc/gimplify.c:5341
0x84542f gimplify_bind_expr
        ../../gcc/gcc/gimplify.c:1079
0x84029e gimplify_expr(tree_node**, gimple_statement_base**,
gimple_statement_base**, bool (*)(tree_node*), int)
        ../../gcc/gcc/gimplify.c:7645
0x844726 gimplify_stmt(tree_node**, gimple_statement_base**)
        ../../gcc/gcc/gimplify.c:5341
0x845f69 gimplify_body(tree_node*, bool)
        ../../gcc/gcc/gimplify.c:8555
0x846546 gimplify_function_tree(tree_node*)
        ../../gcc/gcc/gimplify.c:8708
Please submit a full bug report, [etc.]


             reply	other threads:[~2014-02-14 15:25 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-02-14 15:25 reichelt at gcc dot gnu.org [this message]
2014-02-14 15:27 ` [Bug c/60197] " reichelt at gcc dot gnu.org
2014-02-17 15:48 ` mpolacek at gcc dot gnu.org
2014-02-17 19:20 ` reichelt at gcc dot gnu.org
2014-02-17 20:26 ` mpolacek at gcc dot gnu.org
2014-03-06 13:42 ` mpolacek at gcc dot gnu.org
2014-03-06 13:43 ` mpolacek at gcc dot gnu.org

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bug-60197-4@http.gcc.gnu.org/bugzilla/ \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=gcc-bugs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).