[flang-commits] [flang] [flang] Try -Werror by default (take 2) (PR #175819)

Peter Klausler via flang-commits flang-commits at lists.llvm.org
Tue Jan 13 12:22:42 PST 2026


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

>From e89d1e7ff5e92a85eb7527069b5f31d45d9eb27e 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..83f9be889d734 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) + ">");
     Show(x.u);
     Outdent();
   }



More information about the flang-commits mailing list