[all-commits] [llvm/llvm-project] e468f0: [flang] Set "undefined" NEXTREC=n variable to 0 ra...
Peter Klausler via All-commits
all-commits at lists.llvm.org
Tue Jun 6 11:58:35 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: e468f07550c56eeb49659d02c7c5c3f79f53db6f
https://github.com/llvm/llvm-project/commit/e468f07550c56eeb49659d02c7c5c3f79f53db6f
Author: Peter Klausler <pklausler at nvidia.com>
Date: 2023-06-06 (Tue, 06 Jun 2023)
Changed paths:
M flang/runtime/io-api.cpp
Log Message:
-----------
[flang] Set "undefined" NEXTREC=n variable to 0 rather than random garbage
12.10.2.17 defines that a INQUIRE statement's NEXTREC=n output value
for a unit that is not connected for direct access becomes undefined,
but the current I/O runtime can fail in a confusing manner by trying
to return uninitialized stack garbage.
Reported on Slack by Tarun Prabhu as an intermittent failure in
the gfortran regression test inquire_pre.f90.
Differential Revision: https://reviews.llvm.org/D152295
More information about the All-commits
mailing list