Commit 897064e2 by Jakub Jelinek Committed by Jakub Jelinek

re PR c++/84430 (ICE with #pragma omp simd in lambda)

	PR c++/84430
	* constexpr.c (potential_constant_expression_1): Handle OMP_SIMD.

	* g++.dg/gomp/pr84430.C: New test.

From-SVN: r257820
parent 73829f90
2018-02-19 Jakub Jelinek <jakub@redhat.com>
PR c++/84430
* constexpr.c (potential_constant_expression_1): Handle OMP_SIMD.
2018-02-19 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/84348
......
......@@ -5604,6 +5604,7 @@ potential_constant_expression_1 (tree t, bool want_rval, bool strict, bool now,
case OMP_PARALLEL:
case OMP_TASK:
case OMP_FOR:
case OMP_SIMD:
case OMP_DISTRIBUTE:
case OMP_TASKLOOP:
case OMP_TEAMS:
......
2018-02-19 Jakub Jelinek <jakub@redhat.com>
PR c++/84430
* g++.dg/gomp/pr84430.C: New test.
PR tree-optimization/84452
* gcc.dg/pr84452.c: New test.
......
// PR c++/84430
// { dg-do compile { target c++11 } }
void
foo ()
{
auto a = [] {
#pragma omp simd
for (int i = 0; i < 10; ++i)
;
};
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment