Add illegal cilk checks to C++ front.
authorAndi Kleen <ak@linux.intel.com>
Tue, 11 Nov 2014 05:11:09 +0000 (05:11 +0000)
committerAndi Kleen <ak@gcc.gnu.org>
Tue, 11 Nov 2014 05:11:09 +0000 (05:11 +0000)
commit14f68c3965a2ceb64228341bb5769155b1eb2e13
treea73789fd2207b78d7d1e3be7c1f09c1b415ce99d
parente5e442524724592b9f6e969354ba33c4f20f6ab2
Add illegal cilk checks to C++ front.

Add calls for several illegal Cilk cases to the C++ frontend.
C++ usually doesn't ICE unlike C on illegal cilk, but it's
better to match C in what is allowed and what is not.

if (_Cilk_spawn ...) is still not errored, but at least it doesn't ICE.

gcc/cp/:

2014-11-10  Andi Kleen  <ak@linux.intel.com>

* semantics.c (finish_goto_stmt): Call check_no_cilk.
(finish_while_stmt_cond): Dito.
(finish_do_stmt): Dito.
(finish_for_cond): Dito.
(finish_switch_cond): Dito.

From-SVN: r217337
gcc/cp/ChangeLog
gcc/cp/semantics.c