[flang-commits] [flang] [flang][OpenMP] Make all block constructs share the same structure (PR #150956)

Krzysztof Parzyszek via flang-commits flang-commits at lists.llvm.org
Thu Jul 31 10:05:33 PDT 2025


================
@@ -163,8 +163,7 @@
   !$omp parallel
   do i = 1, N
   enddo
-  !ERROR: Unmatched END TARGET directive
-  !$omp end target
----------------
kparzysz wrote:

We get a syntax error.  Our current end-directive parser expects "END" followed by the specific directive.  I've been thinking about making it accept any end-directive.  That way we could retain the above error, but I haven't tried it, so I don't know what else would happen.

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


More information about the flang-commits mailing list