diff --git a/flang/lib/Semantics/check-omp-atomic.cpp b/flang/lib/Semantics/check-omp-atomic.cpp index ab8aa5f342e48..351af5c099aee 100644 --- a/flang/lib/Semantics/check-omp-atomic.cpp +++ b/flang/lib/Semantics/check-omp-atomic.cpp @@ -157,7 +157,8 @@ struct ReassocRewriter : public evaluate::rewrite::Identity { // inside of the visitor function in common::visit. // Since this works with clang, MSVC and at least GCC 8.5, I'm assuming // that this is some kind of a GCC issue. - using MatchTypes = std::tuple, evaluate::Multiply>; + using MatchTypes = std::tuple, evaluate::Multiply, + evaluate::LogicalOperation>; #else using MatchTypes = typename decltype(outer1)::MatchTypes; #endif