[flang-commits] [flang] [flang][OpenMP] Skip assertion while processing default clause on disallowed constructs (PR #93438)

Kiran Chandramohan via flang-commits flang-commits at lists.llvm.org
Thu May 30 03:24:02 PDT 2024


================
@@ -7,6 +7,15 @@ program main
   integer :: i, N = 10
   real :: a, arrayA(10), arrayB(10), arrayC(10)
   real, external :: foo, bar, baz
+ 
+  !ERROR: DEFAULT clause is not allowed on the DO directive
----------------
kiranchandramohan wrote:

Sorry, I was a bit confused by the presence of ordered and was thinking this is a restriction only if ordered is present. I see that this is a general constraint for the DO directive, so it is fine.

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


More information about the flang-commits mailing list