[Bug c/63398] Cilk errors out incorrectly for spawn inside statement expressions
egallager at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Sat Jul 29 14:12:00 GMT 2017
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; });
~^~~~~~~~~~~~~~~~~~~~~~~~~
$
More information about the Gcc-bugs
mailing list