http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60197
Marek Polacek changed:
What|Removed |Added
Status|ASSIGNED|RESOLVED
Resolution|---
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60197
--- Comment #5 from Marek Polacek ---
Author: mpolacek
Date: Thu Mar 6 13:41:46 2014
New Revision: 208382
URL: http://gcc.gnu.org/viewcvs?rev=208382&root=gcc&view=rev
Log:
PR c/60197
c-family/
* cilk.c (contains_cilk_spawn_stmt): New fun
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60197
--- Comment #4 from Marek Polacek ---
Ah, right, similarly for:
int
foo (void)
{
int i;
i = (_Cilk_spawn foo ()) + 1;
return i;
}
I don't know whether these are valid.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60197
--- Comment #3 from Volker Reichelt ---
Well, the code also crashes, if I move it out of the return statement:
=
int foo()
{
int i = (_Cilk_spawn foo()) + 1;
return i;
}
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60197
Marek Polacek changed:
What|Removed |Added
Keywords|ice-on-valid-code |ice-on-invalid-code
Status|UN
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60197
Volker Reichelt changed:
What|Removed |Added
Keywords||ice-on-valid-code
CC|