https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90365
Jakub Jelinek <jakub at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED CC| |jakub at gcc dot gnu.org Resolution|--- |INVALID --- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> --- clang is wrong. OpenMP 5 clarified this, on combined/composite constructs clauses which apply just to one of the constructs combined/composited together are considered as present on those constructs and expressions in those clauses are used inside of the construct (exception is target teams with 2 teams specific clauses). So, this testcase is to be handled as #pragma omp parallel default(none) #pragma omp for schedule(dynamic, chunkSize) for(int i = 0; i < 10; i++) sink(); and at least that one clang handles properly.