public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/63398] New: Cilk errors out incorrectly for spawn inside statement expressions
@ 2014-09-28 17:14 ak at gcc dot gnu.org
  0 siblings, 0 replies; only message in thread
From: ak at gcc dot gnu.org @ 2014-09-28 17:14 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63398

            Bug ID: 63398
           Summary: Cilk errors out incorrectly for spawn inside statement
                    expressions
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: ak at gcc dot gnu.org

Like in:

void f2();
int f()
{
        return ({ _Cilk_spawn f2(); 0; });
} 

and some other places that use contains_silk_spawn_stmt to check for errors.
But that should be legal.

The problem is the walk_tree in contains_silk_spawn_statement doesn't stop
recursing into the statement.


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2014-09-28 17:14 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-09-28 17:14 [Bug c/63398] New: Cilk errors out incorrectly for spawn inside statement expressions ak 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).