This is an archive of the discontinued LLVM Phabricator instance.

[flang] Catch READ/WRITE on direct-access file without REC=
ClosedPublic

Authored by klausler on Mar 2 2022, 11:19 AM.

Details

Summary

A data transfer statement must have REC= in its control list
if (and only if) the unit was opened with ACCESS='DIRECT'.
The runtime wasn't catching this error, but was just silently
advancing to the next record as if the access were sequential.

Diff Detail

Event Timeline

klausler created this revision.Mar 2 2022, 11:19 AM
Herald added a project: Restricted Project. · View Herald TranscriptMar 2 2022, 11:19 AM
Herald added a subscriber: jdoerfert. · View Herald Transcript
klausler requested review of this revision.Mar 2 2022, 11:19 AM
vdonaldson accepted this revision.Mar 2 2022, 11:30 AM
This revision is now accepted and ready to land.Mar 2 2022, 11:30 AM
This revision was landed with ongoing or failed builds.Mar 2 2022, 12:38 PM
This revision was automatically updated to reflect the committed changes.
Herald added a project: Restricted Project. · View Herald TranscriptMar 2 2022, 12:38 PM