This is an archive of the discontinued LLVM Phabricator instance.

[flang][runtime] Catch more (all?) negative unit number errors
ClosedPublic

Authored by klausler on Jun 14 2022, 1:56 PM.

Details

Summary

Fortran does have negative unit numbers -- they show up in child I/O
subroutines for defined I/O and for OPEN(NEWUNIT=) -- but the runtime
needs to catch the cases where a negative unit number that wasn't
generated by the runtime is passed in for OPEN or for an I/O statement
that would ordinarily create an anonymous "fort.NNN" file for a
hitherto unseen unit.

Diff Detail

Event Timeline

klausler created this revision.Jun 14 2022, 1:56 PM
Herald added a project: Restricted Project. · View Herald TranscriptJun 14 2022, 1:56 PM
Herald added a subscriber: jdoerfert. · View Herald Transcript
klausler requested review of this revision.Jun 14 2022, 1:56 PM
klausler updated this revision to Diff 437381.Jun 15 2022, 3:48 PM

Rebase to current HEAD.

vdonaldson accepted this revision.Jun 15 2022, 5:25 PM
This revision is now accepted and ready to land.Jun 15 2022, 5:25 PM