[flang-commits] [flang] 11622d0 - [flang][NFC] Fix mis-matched struct/class declarations

Tim Keith via flang-commits flang-commits at lists.llvm.org
Fri Oct 2 13:09:16 PDT 2020


Author: Tim Keith
Date: 2020-10-02T13:08:51-07:00
New Revision: 11622d0fed8c1fb99124ebf4a6aece4bcc83b367

URL: https://github.com/llvm/llvm-project/commit/11622d0fed8c1fb99124ebf4a6aece4bcc83b367
DIFF: https://github.com/llvm/llvm-project/commit/11622d0fed8c1fb99124ebf4a6aece4bcc83b367.diff

LOG: [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

Added: 
    

Modified: 
    flang/runtime/io-stmt.h

Removed: 
    


################################################################################
diff  --git a/flang/runtime/io-stmt.h b/flang/runtime/io-stmt.h
index b5d3caff04f0..686cc0f4cb0a 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 <Direction> struct ListDirectedStatementState;
+template <Direction> class ListDirectedStatementState;
 template <>
-struct ListDirectedStatementState<Direction::Output>
+class ListDirectedStatementState<Direction::Output>
     : public FormattedIoStatementState {
+public:
   static std::size_t RemainingSpaceInRecord(const ConnectionState &);
   bool NeedAdvance(const ConnectionState &, std::size_t) const;
   bool EmitLeadingSpaceOrAdvance(


        


More information about the flang-commits mailing list