On 12/04/2013 02:45 PM, Jason Merrill wrote:
+       error_at (input_location, "_Cilk_sync cannot be used without
enabling"
+                 "Cilk Plus");
+      cp_lexer_consume_token (parser->lexer);
+      if (parser->in_statement & IN_CILK_SPAWN)
+       parser->in_statement = parser->in_statement & ~IN_CILK_SPAWN;

Why are you messing with in_statement in the cilk_spawn code?

This needed to catch cases like this:

_Cilk_spawn _Cilk_spawn foo ()

Oops, I meant to say "in the cilk_sync code".  Why does finding a
_Cilk_sync end the _Cilk_spawn context?

Ping, I think this question got lost in the discussion of the copy_body function.

Jason


Reply via email to