[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 12:44:37 PST 2026


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

>From ea7f748cfc88c3411342d3dafecce1ec5c8d7cc4 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..230dff16403b5 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"s);
     Show(x.u);
     Outdent();
   }



More information about the flang-commits mailing list