https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71065
--- Comment #4 from Tobias Burnus <burnus at gcc dot gnu.org> ---
>From IRC: "testcases where nothing should be diagnosed would include e.g.
lambdas in expressions inside of teams clauses and similar nastiness"
Simple examples:
#pragma omp target map(tofrom: b[0:100])
{
int n;
#pragma omp teams
#pragma omp distribute simd aligned(b: 8*sizeof(int))
for(int k=0; k<N; k++)
b[k] = k;
}
for which clang currently has:
t-distribute-simd-clauses/test.c:18:3: error: target construct with nested
teams region contains statements outside of the teams construct
#pragma omp target map(tofrom: b[0:100])
^
t-distribute-simd-clauses/test.c:21:5: note: nested teams construct here
#pragma omp teams
^
t-distribute-simd-clauses/test.c:20:5: note: statement outside teams construct
here
int n;
^
Or "int n" moved just before the '}'.