#pragma omp taskloop simd firstprivate(e, g) // expected-error {{calling a private constructor of class 'S4'}} expected-error {{calling a private constructor of class 'S5'}}
for(intk=0;k<argc;++k)
++k;
#pragma omp parallel
#pragma omp taskloop simd firstprivate(h) // expected-error {{threadprivate or thread local variable cannot be firstprivate}}
for(i=0;i<argc;++i)// expected-error 2 {{loop iteration variable in the associated loop of 'omp taskloop simd' directive may not be firstprivate, predetermined as linear}}
#pragma omp taskloop simd firstprivate(i) // expected-note {{defined as firstprivate}} expected-error {{argument of a reduction clause of a parallel construct must not appear in a firstprivate clause on a task construct}}
for(i=0;i<argc;++i)// expected-error {{loop iteration variable in the associated loop of 'omp taskloop simd' directive may not be firstprivate, predetermined as linear}}
foo();
return0;
}
voidbar(S4a[2]){
#pragma omp parallel
#pragma omp taskloop simd firstprivate(a)
for(inti=0;i<2;++i)
foo();
}
namespaceA{
doublex;
#pragma omp threadprivate(x) // expected-note {{defined as threadprivate or thread local}}
#pragma omp taskloop simd firstprivate(ca) // expected-error {{no matching constructor for initialization of 'S3'}}
for(i=0;i<argc;++i)
foo();
#pragma omp parallel
#pragma omp taskloop simd firstprivate(da) // OK
for(i=0;i<argc;++i)
foo();
intxa;
#pragma omp parallel
#pragma omp taskloop simd firstprivate(xa) // OK
for(i=0;i<argc;++i)
foo();
#pragma omp parallel
#pragma omp taskloop simd firstprivate(S2::S2s) // OK
for(i=0;i<argc;++i)
foo();
#pragma omp parallel
#pragma omp taskloop simd firstprivate(S2::S2sc) // OK
for(i=0;i<argc;++i)
foo();
#pragma omp parallel
#pragma omp taskloop simd safelen(5)
for(i=0;i<argc;++i)
foo();
#pragma omp parallel
#pragma omp taskloop simd firstprivate(e, g) // expected-error {{calling a private constructor of class 'S4'}} expected-error {{calling a private constructor of class 'S5'}}
for(i=0;i<argc;++i)
foo();
#pragma omp parallel
#pragma omp taskloop simd firstprivate(m) // OK
for(i=0;i<argc;++i)
foo();
#pragma omp parallel
#pragma omp taskloop simd firstprivate(h) // expected-error {{threadprivate or thread local variable cannot be firstprivate}}
for(i=0;i<argc;++i)
foo();
#pragma omp parallel
#pragma omp taskloop simd private(xa), firstprivate(xa) // expected-error {{private variable cannot be firstprivate}} expected-note {{defined as private}}
for(i=0;i<argc;++i)
foo();
#pragma omp parallel
#pragma omp taskloop simd firstprivate(i) // expected-note {{defined as firstprivate}}
for(i=0;i<argc;++i)// expected-error {{loop iteration variable in the associated loop of 'omp taskloop simd' directive may not be firstprivate, predetermined as linear}}
foo();
#pragma omp parallel shared(xa)
#pragma omp taskloop simd firstprivate(xa) // OK: may be firstprivate
for(i=0;i<argc;++i)
foo();
#pragma omp parallel
#pragma omp taskloop simd firstprivate(j)
for(i=0;i<argc;++i)
foo();
#pragma omp parallel
#pragma omp taskloop simd lastprivate(g) firstprivate(g) // expected-error {{calling a private constructor of class 'S5'}}
for(i=0;i<argc;++i)
foo();
#pragma omp parallel
#pragma omp taskloop simd lastprivate(n) firstprivate(n) // OK
for(i=0;i<argc;++i)
foo();
#pragma omp parallel
{
intv=0;
inti;
#pragma omp taskloop simd firstprivate(i)
for(intk=0;k<argc;++k){
i=k;
v+=i;
}
}
#pragma omp parallel private(i)
#pragma omp taskloop simd firstprivate(i) // expected-note {{defined as firstprivate}}
for(i=0;i<argc;++i)// expected-error {{loop iteration variable in the associated loop of 'omp taskloop simd' directive may not be firstprivate, predetermined as linear}}
#pragma omp taskloop simd firstprivate(i) // expected-error {{argument of a reduction clause of a parallel construct must not appear in a firstprivate clause on a task construct}}
#pragma omp taskloop simd firstprivate(i) //expected-note {{defined as firstprivate}}
for(i=0;i<argc;++i)// expected-error {{loop iteration variable in the associated loop of 'omp taskloop simd' directive may not be firstprivate, predetermined as linear}}