[flang-commits] [flang] [Flang][#212316] Fix -Wunused-template errors under -Werror (PR #218985)

Eugene Epshteyn via flang-commits flang-commits at lists.llvm.org
Wed Sep 2 06:06:58 PDT 2026


================
@@ -414,7 +414,7 @@ template <typename T> static Precedence ToPrecedence(const Expr<T> &expr) {
   return common::visit([](const auto &x) { return ToPrecedence(x); }, expr.u);
 }
 
-template <typename T> static bool IsNegatedScalarConstant(const Expr<T> &expr) {
+template <typename T> bool IsNegatedScalarConstant(const Expr<T> &expr) {
----------------
eugeneepshteyn wrote:

Please just remove `IsNegatedScalarConstant()` definitions. They are mutually referring, but not used anywhere.

https://github.com/llvm/llvm-project/pull/218985


More information about the flang-commits mailing list