diff --git a/flang/runtime/io-stmt.cpp b/flang/runtime/io-stmt.cpp --- a/flang/runtime/io-stmt.cpp +++ b/flang/runtime/io-stmt.cpp @@ -879,8 +879,8 @@ } template -bool ChildFormattedIoStatementState::AdvanceRecord(int) { - return false; // no can do in a child I/O +bool ChildFormattedIoStatementState::AdvanceRecord(int n) { + return this->child().parent().AdvanceRecord(n); } template