https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90365
Roman Lebedev <lebedev.ri at gmail dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- See Also| |https://bugs.llvm.org/show_ | |bug.cgi?id=41767 --- Comment #3 from Roman Lebedev <lebedev.ri at gmail dot com> --- (In reply to Jakub Jelinek from comment #2) > 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). Thank you for the reply! > 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.