Cwise min/max with constant argument doesn't compile with code from master

Summary

Cwise min/max with constant argument doesn't work with code from master

Environment

  • Operating System : OsX
  • Architecture : x64
  • Eigen Version : master
  • Compiler Version : Apple clang version 12.0.5 (clang-1205.0.22.9)

Minimal Example

#include <Eigen/Core>
#include <iostream>

int main() {
  Eigen::Array<float, 4, 7> A = decltype(A)::Random();
  std::cout << A.max(3) << std::endl;
  return 0;
}

What is the current bug behavior?

Code above doesn't compile

What is the expected correct behavior?

Code above should compile

Relevant logs

Attaching compiler output in: https://pastebin.com/6bd7sPqr

Edited by Yury Gitman