[flang-commits] [flang] [flang] Fix one legitimate warning found with -Werror (PR #175819)

Peter Klausler via flang-commits flang-commits at lists.llvm.org
Tue Jan 13 13:02:53 PST 2026


https://github.com/klausler updated https://github.com/llvm/llvm-project/pull/175819

>From 7822cb67a37b931541bc1acc192645a34f0ba2e9 Mon Sep 17 00:00:00 2001
From: Peter Klausler <pklausler at nvidia.com>
Date: Mon, 12 Jan 2026 17:11:22 -0800
Subject: [PATCH] [flang] Fix one legitimate warning found with -Werror

Leave another alone, and leave -Werror off by default for flang-new.
---
 flang/include/flang/Semantics/dump-expr.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/flang/include/flang/Semantics/dump-expr.h b/flang/include/flang/Semantics/dump-expr.h
index 5a78e13b19e5d..8cbb78b585f4a 100644
--- a/flang/include/flang/Semantics/dump-expr.h
+++ b/flang/include/flang/Semantics/dump-expr.h
@@ -203,7 +203,7 @@ class DumpEvaluateExpr {
   }
   void Show(const evaluate::Relational<evaluate::SomeType> &x);
   template <typename T> void Show(const evaluate::Expr<T> &x) {
-    Indent("expr <" + std::string(TypeOf<T>::name) + ">");
+    Indent("expr <"s + std::string(TypeOf<T>::name) + ">"s);
     Show(x.u);
     Outdent();
   }



More information about the flang-commits mailing list