This is an archive of the discontinued LLVM Phabricator instance.

[flang][runtime] Correct emission & reading of unterminated final records
ClosedPublic

Authored by klausler on Apr 27 2022, 11:37 AM.

Details

Summary

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.

Diff Detail

Event Timeline

klausler created this revision.Apr 27 2022, 11:37 AM
Herald added a project: Restricted Project. · View Herald TranscriptApr 27 2022, 11:37 AM
Herald added a subscriber: jdoerfert. · View Herald Transcript
klausler requested review of this revision.Apr 27 2022, 11:37 AM
vdonaldson accepted this revision.Apr 27 2022, 2:13 PM
This revision is now accepted and ready to land.Apr 27 2022, 2:13 PM