This is an archive of the discontinued LLVM Phabricator instance.

[flang] Catch bad OPEN(STATUS=) cases
ClosedPublic

Authored by klausler on Mar 25 2022, 3:10 PM.

Details

Summary

STATUS='NEW' and 'REPLACE' require FILE= to be present.
STATUS='SCRATCH' may not appear with FILE=.

These errors are caught at compilation time when constant character
strings are used in an OPEN statement, but the runtime needs
to enforce them as well to catch errors in OPEN statements
with character variables and expressions.

Diff Detail

Event Timeline

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