[all-commits] [llvm/llvm-project] ac4202: [flang] Signal runtime error on WRITE after ENDFILE

Peter Klausler via All-commits all-commits at lists.llvm.org
Fri Jan 14 14:46:15 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: ac4202fe9daf3202f7d1e09e9a46cb962c072888
      https://github.com/llvm/llvm-project/commit/ac4202fe9daf3202f7d1e09e9a46cb962c072888
  Author: Peter Klausler <pklausler at nvidia.com>
  Date:   2022-01-14 (Fri, 14 Jan 2022)

  Changed paths:
    M flang/include/flang/Runtime/iostat.h
    M flang/runtime/connection.cpp
    M flang/runtime/connection.h
    M flang/runtime/edit-input.cpp
    M flang/runtime/iostat.cpp
    M flang/runtime/unit.cpp
    M flang/unittests/Runtime/ExternalIOTest.cpp

  Log Message:
  -----------
  [flang] Signal runtime error on WRITE after ENDFILE

After an ENDFILE statement, a WRITE is an error without
a prior BACKSPACE.  Also fix the return value for the case
of formatted integer input with no input digits to be false
(exposed by new test).

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




More information about the All-commits mailing list