Compilation error with latest MSVC (2022 17.4 Preview)

Summary

Compilation error with latest MSVC compiler when simply instantiating a Eigen::Vector4d.

Environment

  • Operating System : Windows 10 Pro
  • Architecture : x64
  • Eigen Version : master from a couple of days ago
  • Compiler Version : MSVC (2022 17.4 Preview)
  • Compile Flags : debug
  • Vector Extension : AVX

Minimal Example

Eigen::Vector4d vec;

Steps to reproduce

  1. simply instantiate a Eigen::Vector4d

What is the current bug behavior?

Compilation error with latest MSVC compiler when simply instantiating a Eigen::Vector4d.

The error is at

https://gitlab.com/libeigen/eigen/-/blob/master/Eigen/src/Eigenvalues/GeneralizedEigenSolver.h#L182

What is the expected correct behavior?

It should compile.

Relevant logs

[build] deps\Eigen\include\Eigen\src/Eigenvalues/GeneralizedEigenSolver.h(182,9): error C2760: syntax error: ')' was unexpected here; expected 'expression'

It is missing a semi-colon at the end of the line.MSVC does not like it at all.

  • Have a plan to fix this issue. (busy today but can try provide the quick fix this evening)
Edited by Michael Palomas