[flang-commits] [flang] [llvm] [flang][OpenMP] Check that IF clause applies to at most one leaf (PR #205164)

Krzysztof Parzyszek via flang-commits flang-commits at lists.llvm.org
Tue Jun 23 10:49:38 PDT 2026


================
@@ -4362,11 +4370,33 @@ void OmpStructureChecker::Enter(const parser::OmpClause::If &x) {
         context_.Say(modifierSource,
             "%s is not allowed as '%s' in %s, %s"_warn_en_US, subName, modName,
             ThisVersion(version), TryVersion(52));
-      } else if (!llvm::is_contained(valid45, sub) &&
+      } else if (version < 60 && !llvm::is_contained(valid45, sub) &&
----------------
kparzysz wrote:

Added one with a directive specific to 6.0.

https://github.com/llvm/llvm-project/pull/205164


More information about the flang-commits mailing list