From bf51738d809ae2acf36e2f1f446d3111221e28e2 Mon Sep 17 00:00:00 2001 From: Krzysztof Parzyszek Date: Fri, 5 Sep 2025 09:26:56 -0500 Subject: [PATCH] [flang][OpenMP] Fix build break with gcc 7.5.0 after e58de06414 Example: https://lab.llvm.org/buildbot/#/builders/140/builds/30179 --- flang/lib/Semantics/check-omp-atomic.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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