[flang-commits] [flang] [flang][OpenMP] Replace modifier verification with a generic one (PR #220675)

Sairudra More via flang-commits flang-commits at lists.llvm.org
Thu Sep 3 02:23:29 PDT 2026


================
@@ -2947,48 +2948,15 @@ void OmpStructureChecker::ChecksOnOrderedAsStandalone() {
     context_.Say(GetContext().clauseSource,
         "THREADS and SIMD clauses are not allowed when ORDERED construct is a standalone construct with no ORDERED region"_err_en_US);
   }
-
-  int dependSinkCount{0}, dependSourceCount{0};
----------------
Saieiei wrote:

Could we retain the directive-level SOURCE/SINK checks here? The generic modifier verifier operates on one clause at a time, so it doesn't appear to replace these cross-clause checks. In particular, `ordered01.f90` now accepts multiple `depend(source)` clauses and a `depend(sink: ...)/depend(source)` combination without the previous diagnostics.

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


More information about the flang-commits mailing list