[flang-commits] [PATCH] D127783: [flang][runtime] Fix REWIND after non-advancing data transfer
Peter Klausler via Phabricator via flang-commits
flang-commits at lists.llvm.org
Tue Jun 14 13:49:23 PDT 2022
klausler created this revision.
klausler added a project: Flang.
Herald added a subscriber: jdoerfert.
Herald added a project: All.
klausler requested review of this revision.
A REWIND of a unit that's in the middle of a record due to a READ
or WRITE statement with ADVANCE='NO' needs to reset the left tab
limit so that the next transfer takes place at the beginning of
the first record.
https://reviews.llvm.org/D127783
Files:
flang/runtime/unit.cpp
Index: flang/runtime/unit.cpp
===================================================================
--- flang/runtime/unit.cpp
+++ flang/runtime/unit.cpp
@@ -649,6 +649,7 @@
} else {
SetPosition(0, handler);
currentRecordNumber = 1;
+ leftTabLimit.reset();
}
}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D127783.436915.patch
Type: text/x-patch
Size: 281 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/flang-commits/attachments/20220614/3cff3ff3/attachment.bin>
More information about the flang-commits
mailing list