[flang-commits] [PATCH] D135212: [flang][runtime] When NAMELIST input hits EOF, signal END, not an error

Peter Klausler via Phabricator via flang-commits flang-commits at lists.llvm.org
Thu Oct 6 11:32:48 PDT 2022


This revision was automatically updated to reflect the committed changes.
Closed by commit rGa5f5d72f6c01: [flang][runtime] When NAMELIST input hits EOF, signal END, not an error (authored by klausler).

Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D135212/new/

https://reviews.llvm.org/D135212

Files:
  flang/runtime/namelist.cpp


Index: flang/runtime/namelist.cpp
===================================================================
--- flang/runtime/namelist.cpp
+++ flang/runtime/namelist.cpp
@@ -383,7 +383,11 @@
         next = io.GetNextNonBlank(byteCount);
       }
     }
-    if (!next || *next != '&') {
+    if (!next) {
+      handler.SignalEnd();
+      return false;
+    }
+    if (*next != '&') {
       handler.SignalError(
           "NAMELIST input group does not begin with '&' (at '%lc')", *next);
       return false;


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D135212.465813.patch
Type: text/x-patch
Size: 508 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/flang-commits/attachments/20221006/cd2454ad/attachment.bin>


More information about the flang-commits mailing list