PR c++/84430
* constexpr.c (potential_constant_expression_1): Handle OMP_SIMD.
* g++.dg/gomp/pr84430.C: New test.
From-SVN: r257820
+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
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.
--- /dev/null
+// PR c++/84430
+// { dg-do compile { target c++11 } }
+
+void
+foo ()
+{
+ auto a = [] {
+ #pragma omp simd
+ for (int i = 0; i < 10; ++i)
+ ;
+ };
+}