[flang-commits] [PATCH] D126145: [flang][runtime] INQUIRE(UNIT=666, NUMBER=n) must set n=666

Peter Klausler via Phabricator via flang-commits flang-commits at lists.llvm.org
Sat May 21 22:11:08 PDT 2022


klausler created this revision.
klausler added a reviewer: vdonaldson.
klausler added a project: Flang.
Herald added a subscriber: jdoerfert.
Herald added a project: All.
klausler requested review of this revision.

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.


https://reviews.llvm.org/D126145

Files:
  flang/runtime/io-api.cpp
  flang/runtime/io-stmt.cpp
  flang/runtime/io-stmt.h

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D126145.431202.patch
Type: text/x-patch
Size: 5151 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/flang-commits/attachments/20220522/0ed565cd/attachment.bin>


More information about the flang-commits mailing list