[all-commits] [llvm/llvm-project] ab6cc6: [flang] Allow nested scopes for implied DO loops w...
Eugene Epshteyn via All-commits
all-commits at lists.llvm.org
Tue Mar 4 17:41:22 PST 2025
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: ab6cc6b7b3a3de5e6f5999601f0d40ab2b2819e2
https://github.com/llvm/llvm-project/commit/ab6cc6b7b3a3de5e6f5999601f0d40ab2b2819e2
Author: Eugene Epshteyn <eepshteyn at nvidia.com>
Date: 2025-03-04 (Tue, 04 Mar 2025)
Changed paths:
M flang/lib/Semantics/resolve-names.cpp
M flang/test/Semantics/resolve40.f90
M flang/test/Semantics/symbol09.f90
Log Message:
-----------
[flang] Allow nested scopes for implied DO loops with DATA statements (#129410)
Previously, nested scopes for implied DO loops with DATA statements were
disallowed, which meant that the following code couldn't compile due to
re-use of `j` loop variable name:
DATA (a(i),(b(i,j),j=1,3),(c(i,j),j=1,3),i=0,4)/
This change allows nested scopes implied DO loops, which allows the code
above to compile.
Tests modified to in accordance with this change:
Semantics/resolve40.f90, Semantics/symbol09.f90
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