PR c/91149
* c-omp.c (c_omp_split_clauses): Fix a pasto in
OMP_CLAUSE_REDUCTION_TASK handling.
* c-c++-common/gomp/reduction-task-3.c: New test.
From-SVN: r273465
+2019-07-13 Jakub Jelinek <jakub@redhat.com>
+
+ PR c/91149
+ * c-omp.c (c_omp_split_clauses): Fix a pasto in
+ OMP_CLAUSE_REDUCTION_TASK handling.
+
2019-07-12 Jakub Jelinek <jakub@redhat.com>
* c-pragma.h (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_ORDER.
}
else if (code != OMP_SECTIONS
&& (mask & (OMP_CLAUSE_MASK_1
- << PRAGMA_OMP_CLAUSE_SCHEDULE)) == 0
+ << PRAGMA_OMP_CLAUSE_NUM_THREADS)) == 0
&& (mask & (OMP_CLAUSE_MASK_1
<< PRAGMA_OMP_CLAUSE_SCHEDULE)) == 0)
{
2019-07-13 Jakub Jelinek <jakub@redhat.com>
+ PR c/91149
+ * c-c++-common/gomp/reduction-task-3.c: New test.
+
* c-c++-common/gomp/order-3.c: New test.
* c-c++-common/gomp/order-4.c: New test.
--- /dev/null
+/* PR c/91149 */
+
+int r;
+
+void
+foo (void)
+{
+ #pragma omp parallel reduction(task, +: r)
+ r++;
+ #pragma omp target parallel reduction(task, +: r)
+ r++;
+}