This is an archive of the discontinued LLVM Phabricator instance.

[flang][runtime] INQUIRE(UNIT=666,NUMBER=n) must set n=666
ClosedPublic

Authored by klausler on May 21 2022, 10:11 PM.

Details

Summary

Whether a unit number in an inquire-by-unit statement is valid or not,
it should be the value to which the NUMBER= variable is set, not -1.
-1 should be returned to NUMBER= only for an inquire-by-file statement
when the FILE= is not connected to any unit.

Diff Detail

Event Timeline

klausler created this revision.May 21 2022, 10:11 PM
Herald added a project: Restricted Project. · View Herald TranscriptMay 21 2022, 10:11 PM
Herald added a subscriber: jdoerfert. · View Herald Transcript
klausler requested review of this revision.May 21 2022, 10:11 PM
vdonaldson accepted this revision.May 23 2022, 10:23 AM
This revision is now accepted and ready to land.May 23 2022, 10:23 AM