https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90406
Bug ID: 90406 Summary: OpenMP default(none) + if(variable) - difference with clang Product: gcc Version: 9.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: lebedev.ri at gmail dot com Target Milestone: --- A continuation of https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90365 That bug was a clang bug, https://bugs.llvm.org/show_bug.cgi?id=41767 and it got fixed. But now GCC, unlike clang, does not complain on the following: void f(int n) { #pragma omp parallel default(none) if(n) ; } Is clang too eager here, or should gcc diagnose this too? https://godbolt.org/z/NaXv7u