[all-commits] [llvm/llvm-project] 0a8a57: [flang][runtime] EOF is recoverable only with END=...

Peter Klausler via All-commits all-commits at lists.llvm.org
Fri Mar 10 10:35:32 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 0a8a572c7ebc027a4e21b3f0073565b0ea2d00c6
      https://github.com/llvm/llvm-project/commit/0a8a572c7ebc027a4e21b3f0073565b0ea2d00c6
  Author: Peter Klausler <pklausler at nvidia.com>
  Date:   2023-03-10 (Fri, 10 Mar 2023)

  Changed paths:
    M flang/runtime/io-error.cpp

  Log Message:
  -----------
  [flang][runtime] EOF is recoverable only with END= or IOSTAT=

The runtime's I/O error handler was not crashing the program on an
end-of-file condition that arises for a data transfer statement with
at least one of ERR= or IOMSG= and none of END= or IOSTAT= control
items.  This turns out to be incorrect (per subclause 12.11);
an EOF is recoverable only for END= and/or IOSTAT=, and an
non-advancing end-of-record is recoverable only for EOR= and/or IOSTAT=.

Differential Revision: https://reviews.llvm.org/D145754




More information about the All-commits mailing list