blob: 84c854afd929b5f23322cb1e646387a2a806c34b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
// PR c++/67522
// { dg-do compile }
// { dg-options "-fopenmp" }
struct S;
template <int N>
void
foo (void)
{
#pragma omp simd linear (S) // { dg-error "is not a variable in clause" }
for (int i = 0; i < 16; i++)
;
#pragma omp target map (S[0:10]) // { dg-error "is not a variable in" }
;
#pragma omp task depend (inout: S[0:10]) // { dg-error "is not a variable in" }
;
}
void
bar ()
{
foo <0> ();
}
|