Skip to content

Commit 11622d0

Browse files
committed
[flang][NFC] Fix mis-matched struct/class declarations
The template `ListDirectedStatementState` was declared as a struct and then as a class. Fix it so they match. Differential Revision: https://reviews.llvm.org/D88711
1 parent 128e999 commit 11622d0

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

flang/runtime/io-stmt.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -149,10 +149,11 @@ struct IoStatementBase : public DefaultFormatControlCallbacks {
149149
};
150150

151151
// Common state for list-directed internal & external I/O
152-
template <Direction> struct ListDirectedStatementState;
152+
template <Direction> class ListDirectedStatementState;
153153
template <>
154-
struct ListDirectedStatementState<Direction::Output>
154+
class ListDirectedStatementState<Direction::Output>
155155
: public FormattedIoStatementState {
156+
public:
156157
static std::size_t RemainingSpaceInRecord(const ConnectionState &);
157158
bool NeedAdvance(const ConnectionState &, std::size_t) const;
158159
bool EmitLeadingSpaceOrAdvance(

0 commit comments

Comments
 (0)