[flang-commits] [flang] [flang][OpenMP] Fix build break with gcc 7.5.0 after e58de06414 (PR #157115)

Krzysztof Parzyszek via flang-commits flang-commits at lists.llvm.org
Fri Sep 5 09:01:58 PDT 2025


https://github.com/kparzysz updated https://github.com/llvm/llvm-project/pull/157115

>From bf51738d809ae2acf36e2f1f446d3111221e28e2 Mon Sep 17 00:00:00 2001
From: Krzysztof Parzyszek <Krzysztof.Parzyszek at amd.com>
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::Add<T>, evaluate::Multiply<T>>;
+    using MatchTypes = std::tuple<evaluate::Add<T>, evaluate::Multiply<T>,
+        evaluate::LogicalOperation<T::kind>>;
 #else
     using MatchTypes = typename decltype(outer1)::MatchTypes;
 #endif



More information about the flang-commits mailing list