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

Jason Van Beusekom via flang-commits flang-commits at lists.llvm.org
Tue Jun 23 10:11:18 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) &&
----------------
Jason-Van-Beusekom wrote:

Do we need a 6.0 test for this?

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


More information about the flang-commits mailing list