[llvm-branch-commits] [flang] [flang][OpenMP] Switch clause verification to descriptor-based (PR #229527)

Sairudra More via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Mon Oct 19 02:31:03 PDT 2026


================
@@ -324,7 +326,6 @@
   !$omp end sections
 
   !$omp parallel sections
-  !ERROR: NOWAIT clause is not allowed on PARALLEL SECTIONS directive
----------------
Saieiei wrote:

This is now accepted at every version before 6.0, but OpenMP 5.2 section 17.4 says that if directive-name-A is parallel, the nowait and in_reduction clauses must not be specified. Only 6.0 drops that rule. NOWAIT on PARALLEL DO and PARALLEL WORKSHARE is accepted the same way, and IN_REDUCTION on PARALLEL MASKED TASKLOOP at 5.0 to 5.2. A check for these two clauses when PARALLEL is the first leaf, limited to versions before 6.0, brings back a diagnostic for me.

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


More information about the llvm-branch-commits mailing list