This is an archive of the discontinued LLVM Phabricator instance.

[flang] runtime: fix WRITE after BACKSPACE on variable-length file
ClosedPublic

Authored by klausler on Aug 23 2021, 3:47 PM.

Details

Summary

BACKSPACE leaves "recordLength" set, which is fine for a later READ,
but it causes a later WRITE to fail due to a misinterpretation of the
knowledge of the record length as indication of a fixed-length record
file (RECL=). Fix.

Diff Detail

Event Timeline

klausler created this revision.Aug 23 2021, 3:47 PM
klausler requested review of this revision.Aug 23 2021, 3:47 PM
This revision is now accepted and ready to land.Aug 24 2021, 2:23 AM
Herald added a project: Restricted Project. · View Herald TranscriptAug 24 2021, 9:39 AM