[flang-commits] [PATCH] D123730: [flang][runtime] Fix ENDFILE for formatted stream output

Peter Klausler via Phabricator via flang-commits flang-commits at lists.llvm.org
Fri Apr 15 18:57:38 PDT 2022


This revision was automatically updated to reflect the committed changes.
Closed by commit rG64aff3632f5b: [flang][runtime] Fix ENDFILE for formatted stream output (authored by klausler).

Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D123730

Files:
  flang/runtime/unit.cpp


Index: flang/runtime/unit.cpp
===================================================================
--- flang/runtime/unit.cpp
+++ flang/runtime/unit.cpp
@@ -834,7 +834,7 @@
 }
 
 void ExternalFileUnit::DoEndfile(IoErrorHandler &handler) {
-  if (access == Access::Sequential) {
+  if (IsRecordFile()) {
     endfileRecordNumber = currentRecordNumber;
   }
   FlushOutput(handler);


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D123730.423200.patch
Type: text/x-patch
Size: 380 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/flang-commits/attachments/20220416/774fa1dd/attachment.bin>


More information about the flang-commits mailing list