[all-commits] [llvm/llvm-project] d90e86: [flang][runtime] INQUIRE(UNIT=666, NUMBER=n) must s...
Peter Klausler via All-commits
all-commits at lists.llvm.org
Tue May 24 09:48:50 PDT 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: d90e866a191fb77bb20140c6a955a4b3258c6ee3
https://github.com/llvm/llvm-project/commit/d90e866a191fb77bb20140c6a955a4b3258c6ee3
Author: Peter Klausler <pklausler at nvidia.com>
Date: 2022-05-24 (Tue, 24 May 2022)
Changed paths:
M flang/runtime/io-api.cpp
M flang/runtime/io-stmt.cpp
M flang/runtime/io-stmt.h
Log Message:
-----------
[flang][runtime] INQUIRE(UNIT=666,NUMBER=n) must set n=666
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.
Differential Revision: https://reviews.llvm.org/D126145
More information about the All-commits
mailing list