From 28ded8800c26864e537852658428ab44c8399e87 Mon Sep 17 00:00:00 2001
From: Antonio Sanchez <cantonios@google.com>
Date: Mon, 20 Oct 2025 12:24:38 -0700
Subject: [PATCH] Fix input type for min/max.

We're missing an input base class specifier for the default `NanPropagation=PropagateFast`
case for consistency.

Fixes #2990.
---
 Eigen/src/plugins/ArrayCwiseBinaryOps.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/Eigen/src/plugins/ArrayCwiseBinaryOps.h b/Eigen/src/plugins/ArrayCwiseBinaryOps.h
index 6a79563c94..a5dcd7ed6e 100644
--- a/Eigen/src/plugins/ArrayCwiseBinaryOps.h
+++ b/Eigen/src/plugins/ArrayCwiseBinaryOps.h
@@ -51,7 +51,7 @@ min
 #else
 (min)
 #endif
-(const OtherDerived &other) const
+(const EIGEN_CURRENT_STORAGE_BASE_CLASS<OtherDerived> &other) const
 {
   return (min<PropagateFast>)(other);
 }
@@ -115,7 +115,7 @@ max
 #else
 (max)
 #endif
-(const OtherDerived &other) const
+(const EIGEN_CURRENT_STORAGE_BASE_CLASS<OtherDerived> &other) const
 {
   return (max<PropagateFast>)(other);
 }
-- 
GitLab

