[flang-commits] [PATCH] D144205: [flang][runtime] Allow record advancement in child I/O via '/' control edit descriptor

Peter Klausler via Phabricator via flang-commits flang-commits at lists.llvm.org
Thu Feb 16 16:41:41 PST 2023


This revision was automatically updated to reflect the committed changes.
Closed by commit rG65277494f04d: [flang][runtime] Allow record advancement in child I/O via '/' control edit… (authored by klausler).

Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D144205

Files:
  flang/runtime/io-stmt.cpp


Index: flang/runtime/io-stmt.cpp
===================================================================
--- flang/runtime/io-stmt.cpp
+++ flang/runtime/io-stmt.cpp
@@ -879,8 +879,8 @@
 }
 
 template <Direction DIR, typename CHAR>
-bool ChildFormattedIoStatementState<DIR, CHAR>::AdvanceRecord(int) {
-  return false; // no can do in a child I/O
+bool ChildFormattedIoStatementState<DIR, CHAR>::AdvanceRecord(int n) {
+  return this->child().parent().AdvanceRecord(n);
 }
 
 template <Direction DIR>


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D144205.498193.patch
Type: text/x-patch
Size: 496 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/flang-commits/attachments/20230217/58faf36b/attachment.bin>


More information about the flang-commits mailing list