aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp/semantics.c
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2019-10-14 10:28:05 +0200
committerJakub Jelinek <jakub@gcc.gnu.org>2019-10-14 10:28:05 +0200
commitf1cb5c0aadc245d902e040f4b35a06e1fc8d2d50 (patch)
treec6672e89bbcaf3522cf1430c7804ae0eed937ba8 /gcc/cp/semantics.c
parent3c917358901af9a778d4ba851fa724f4923480bf (diff)
downloadgcc-f1cb5c0aadc245d902e040f4b35a06e1fc8d2d50.zip
gcc-f1cb5c0aadc245d902e040f4b35a06e1fc8d2d50.tar.gz
gcc-f1cb5c0aadc245d902e040f4b35a06e1fc8d2d50.tar.bz2
re PR c++/92084 (ICE: tree check: expected tree that contains 'decl minimal' structure, have 'compound_expr' in gimplify_scan_omp_clauses, at gimplify.c:9039)
PR c++/92084 * semantics.c (handle_omp_array_sections_1): Temporarily disable -fstrong-eval-order also for in_reduction and task_reduction clauses. * g++.dg/gomp/pr92084.C: New test. From-SVN: r276954
Diffstat (limited to 'gcc/cp/semantics.c')
-rw-r--r--gcc/cp/semantics.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/gcc/cp/semantics.c b/gcc/cp/semantics.c
index f93bb93..59def31 100644
--- a/gcc/cp/semantics.c
+++ b/gcc/cp/semantics.c
@@ -5068,7 +5068,9 @@ handle_omp_array_sections_1 (tree c, tree t, vec<tree> &types,
saying how many times the side-effects are evaluated is unspecified,
makes int *a, *b; ... reduction(+:a[a = b, 3:10]) really unspecified. */
warning_sentinel s (flag_strong_eval_order,
- OMP_CLAUSE_CODE (c) == OMP_CLAUSE_REDUCTION);
+ OMP_CLAUSE_CODE (c) == OMP_CLAUSE_REDUCTION
+ || OMP_CLAUSE_CODE (c) == OMP_CLAUSE_IN_REDUCTION
+ || OMP_CLAUSE_CODE (c) == OMP_CLAUSE_TASK_REDUCTION);
ret = grok_array_decl (OMP_CLAUSE_LOCATION (c), ret, low_bound, false);
return ret;
}