diff --git a/flang/runtime/io-stmt.h b/flang/runtime/io-stmt.h index b5d3caff04f00..686cc0f4cb0ab 100644 --- a/flang/runtime/io-stmt.h +++ b/flang/runtime/io-stmt.h @@ -149,10 +149,11 @@ struct IoStatementBase : public DefaultFormatControlCallbacks { }; // 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(