When compiling a function in the file 'ProductEvaluators.h" in the current release of Eigen using v141, I get an internal compiler error.
fatal error C1001: An internal error has occurred in the compiler.
The function looks as follows and I narrowed down the error in / crash of the compiler to the '.sum()' in the last line:
EIGEN_DEVICE_FUNC const CoeffReturnType coeff(Index index) const
{
const Index row = (RowsAtCompileTime == 1 || MaxRowsAtCompileTime==1) ? 0 : index;
const Index col = (RowsAtCompileTime == 1 || MaxRowsAtCompileTime==1) ? index : 0;
return (m_lhs.row(row).transpose().cwiseProduct( m_rhs.col(col) )).sum();
}
While it would of course be interesting to fix this specific error, I was also wondering, what kind of code typically provokes this kind of compiler crashes?