[flang-commits] [PATCH] D109439: [flang] Fix common block size extension mistake in D109156
Jean Perier via Phabricator via flang-commits
flang-commits at lists.llvm.org
Thu Sep 9 00:13:06 PDT 2021
This revision was automatically updated to reflect the committed changes.
Closed by commit rGd892d7323e45: [flang] Fix common block size extension mistake in D109156 (authored by jeanPerier).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D109439/new/
https://reviews.llvm.org/D109439
Files:
flang/lib/Semantics/compute-offsets.cpp
flang/test/Semantics/offsets03.f90
Index: flang/test/Semantics/offsets03.f90
===================================================================
--- flang/test/Semantics/offsets03.f90
+++ flang/test/Semantics/offsets03.f90
@@ -56,4 +56,8 @@
equivalence(i4, l4)
equivalence(l4(10), k4)
common /common6/ i4, j4 ! CHECK: common6 size=76 offset=0: CommonBlockDetails alignment=4:
+
+ integer :: i5, j5, l5(10)
+ equivalence(l5(1), i5)
+ common /common7/ j5, i5 ! CHECK: common7 size=44 offset=0: CommonBlockDetails alignment=4:
end
Index: flang/lib/Semantics/compute-offsets.cpp
===================================================================
--- flang/lib/Semantics/compute-offsets.cpp
+++ flang/lib/Semantics/compute-offsets.cpp
@@ -154,7 +154,7 @@
auto eqIter{equivalenceBlock_.end()};
auto iter{dependents_.find(symbol)};
if (iter == dependents_.end()) {
- auto eqIter = equivalenceBlock_.find(symbol);
+ eqIter = equivalenceBlock_.find(symbol);
if (eqIter != equivalenceBlock_.end()) {
DoEquivalenceBlockBase(symbol, eqIter->second);
}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D109439.371516.patch
Type: text/x-patch
Size: 1071 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/flang-commits/attachments/20210909/d7e8cc9f/attachment.bin>
More information about the flang-commits
mailing list