Index: flang/runtime/io-stmt.cpp =================================================================== --- flang/runtime/io-stmt.cpp +++ 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