[flang-commits] [PATCH] D124546: [flang][runtime] Correct emission & reading of unterminated final records
Peter Klausler via Phabricator via flang-commits
flang-commits at lists.llvm.org
Wed Apr 27 11:37:18 PDT 2022
klausler created this revision.
klausler added a reviewer: vdonaldson.
klausler added a project: Flang.
Herald added a subscriber: jdoerfert.
Herald added a project: All.
klausler requested review of this revision.
When the last operation on a foramtted sequential or stream file (prior
to an implied or explicit ENDFILE) is a non-advancing WRITE, ensure
that any partial record data is emitted to the file without a line
terminator. Further, when that last record is read with a non-advancing
READ, ensure that it won't raise an end-of-record condition after its
data, but instead will signal an end-of-file.
https://reviews.llvm.org/D124546
Files:
flang/runtime/connection.h
flang/runtime/io-stmt.cpp
flang/runtime/unit.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D124546.425583.patch
Type: text/x-patch
Size: 3872 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/flang-commits/attachments/20220427/e7cdc739/attachment.bin>
More information about the flang-commits
mailing list