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

Eugene Epshteyn via flang-commits flang-commits at lists.llvm.org
Sun Sep 6 13:18:34 PDT 2026


================
@@ -15,8 +15,7 @@ namespace Fortran::evaluate {
 
 // DOT_PRODUCT
 template <typename T>
-static Expr<T> FoldDotProduct(
-    FoldingContext &context, FunctionRef<T> &&funcRef) {
+Expr<T> FoldDotProduct(FoldingContext &context, FunctionRef<T> &&funcRef) {
----------------
eugeneepshteyn wrote:

Specifically for this case, you could ask AI to generate you examples to try with a C++ compiler. (Or use AI agent that can automatically generate and try such examples.)

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


More information about the flang-commits mailing list