[all-commits] [llvm/llvm-project] d01e2e: [flang][OpenMP] Reject END DO on construct that cr...
Krzysztof Parzyszek via All-commits
all-commits at lists.llvm.org
Wed Nov 26 11:18:25 PST 2025
Branch: refs/heads/users/kparzysz/f02-complain-about-enddo
Home: https://github.com/llvm/llvm-project
Commit: d01e2e9e06ba5c641b07f2fd47f2f8bea93e78be
https://github.com/llvm/llvm-project/commit/d01e2e9e06ba5c641b07f2fd47f2f8bea93e78be
Author: Krzysztof Parzyszek <Krzysztof.Parzyszek at amd.com>
Date: 2025-11-26 (Wed, 26 Nov 2025)
Changed paths:
M flang/include/flang/Parser/parse-tree.h
M flang/lib/Semantics/canonicalize-do.cpp
M flang/lib/Semantics/check-omp-loop.cpp
M flang/test/Parser/OpenMP/atomic-label-do.f90
M flang/test/Parser/OpenMP/cross-label-do.f90
M flang/test/Semantics/OpenMP/loop-association.f90
Log Message:
-----------
[flang][OpenMP] Reject END DO on construct that crosses label-DO
In a label-DO construct where two or more loops share the same teminator,
an OpenMP construct must enclose all the loops if an end-directive is
present. E.g.
```
do 100 i = 1,10
!$omp do
do 100 j = 1,10
100 continue
!$omp end do ! Error, but ok if this line is removed
```
OpenMP 5.1 and later no longer has this restriction.
Fixes https://github.com/llvm/llvm-project/issues/169536.
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list