diff --git a/flang/lib/Lower/OpenACC.cpp b/flang/lib/Lower/OpenACC.cpp --- a/flang/lib/Lower/OpenACC.cpp +++ b/flang/lib/Lower/OpenACC.cpp @@ -99,7 +99,6 @@ if (loopDirective.v == llvm::acc::ACCD_loop) { auto &firOpBuilder = converter.getFirOpBuilder(); auto currentLocation = converter.getCurrentLocation(); - llvm::ArrayRef argTy; // Add attribute extracted from clauses. const auto &accClauseList = 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 @@ -162,7 +162,7 @@ bool lastWasUndelimitedCharacter{false}; }; template <> -class ListDirectedStatementState +struct ListDirectedStatementState : public FormattedIoStatementState { public: // Skips value separators, handles repetition and null values.