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] Cilk errors out incorrectly for spawn inside statement expressions


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

Eric Gallager <egallager at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2017-07-29
                 CC|                            |egallager at gcc dot gnu.org
     Ever confirmed|0                           |1

--- Comment #1 from Eric Gallager <egallager at gcc dot gnu.org> ---
Confirmed that it errors out:

$ /usr/local/bin/gcc -c -fcilkplus 63398.c
63398.c: In function ‘f’:
63398.c:4:10: error: use of ‘_Cilk_spawn’ in a return statement is not allowed
  return ({ _Cilk_spawn f2(); 0; });
         ~^~~~~~~~~~~~~~~~~~~~~~~~~
$

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