summaryrefslogtreecommitdiff
path: root/gcc/cp/cp-cilkplus.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/cp/cp-cilkplus.c')
-rw-r--r--gcc/cp/cp-cilkplus.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/cp/cp-cilkplus.c b/gcc/cp/cp-cilkplus.c
index aa803438e5d..ef3bbef9f2c 100644
--- a/gcc/cp/cp-cilkplus.c
+++ b/gcc/cp/cp-cilkplus.c
@@ -46,6 +46,9 @@ cpp_validate_cilk_plus_loop_aux (tree *tp, int *walk_subtrees, void *data)
if (!tp || !*tp)
return NULL_TREE;
+ // Validate the C common bits.
+ c_validate_cilk_plus_loop (tp, walk_subtrees, data);
+
if (TREE_CODE (*tp) == THROW_EXPR)
{
error_at (loc, "throw expressions are not allowed inside loops "