[flang-commits] [PATCH] D117346: [flang] Signal runtime error on WRITE after ENDFILE

Peter Klausler via Phabricator via flang-commits flang-commits at lists.llvm.org
Fri Jan 14 11:08:16 PST 2022


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

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).


https://reviews.llvm.org/D117346

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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D117346.400081.patch
Type: text/x-patch
Size: 7969 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/flang-commits/attachments/20220114/413633a6/attachment.bin>


More information about the flang-commits mailing list