This is an archive of the discontinued LLVM Phabricator instance.

[flang][runtime] Detect NEWUNIT= without FILE= or STATUS='SCRATCH'
ClosedPublic

Authored by klausler on Jul 21 2023, 8:27 AM.

Details

Summary

It is an error to open a new unit with OPEN(NEWUNIT=) and have
neither a file name nor a scratch status. Catch it, and report a
new error code.

Diff Detail

Event Timeline

klausler created this revision.Jul 21 2023, 8:27 AM
Herald added a project: Restricted Project. · View Herald TranscriptJul 21 2023, 8:27 AM
klausler requested review of this revision.Jul 21 2023, 8:27 AM
This revision is now accepted and ready to land.Jul 21 2023, 9:12 AM