This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c/63398] New: Cilk errors out incorrectly for spawn inside statement expressions


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]