diff --git a/flang/runtime/io-stmt.h b/flang/runtime/io-stmt.h --- a/flang/runtime/io-stmt.h +++ b/flang/runtime/io-stmt.h @@ -149,10 +149,11 @@ }; // Common state for list-directed internal & external I/O -template struct ListDirectedStatementState; +template class ListDirectedStatementState; template <> -struct ListDirectedStatementState +class ListDirectedStatementState : public FormattedIoStatementState { +public: static std::size_t RemainingSpaceInRecord(const ConnectionState &); bool NeedAdvance(const ConnectionState &, std::size_t) const; bool EmitLeadingSpaceOrAdvance(