the following test file fails to compile using Intel compiler (v.13 or v.15): -- test.cpp -- #include <Eigen/SVD> void test(const Eigen::MatrixXd& M) { Eigen::BDCSVD<Eigen::MatrixXd> svd(M); } int main() {} -- end -- the following error is displayed: Eigen/src/Jacobi/Jacobi.h(467): error: expression must have a constant value Vectorizable>::run(x,incrx,y,incry,size,c,s); ^ detected during: instantiation of "void Eigen::MatrixBase<Derived>::applyOnTheLeft(Eigen::Index={ptrdiff_t={long}}, Eigen::Index={ptrdiff_t={long}}, const Eigen::JacobiRotation<OtherScalar> &) [with Derived=Eigen::Matrix<double, 2, 2, 0, 2, 2>, OtherScalar=double]" at line 46 of "Eigen/src/misc/RealSvd2x2.h" instantiation of "void Eigen::internal::real_2x2_jacobi_svd(const MatrixType &, Index, Index, Eigen::JacobiRotation<RealScalar> *, Eigen::JacobiRotation<RealScalar> *) [with MatrixType=Eigen::Matrix<double, -1, -1, 0, -1, -1>, RealScalar=double, Index=Eigen::Index={ptrdiff_t={long}}]" at line 722 of "Eigen/src/SVD/JacobiSVD.h" instantiation of "Eigen::JacobiSVD<_MatrixType, QRPreconditioner> &Eigen::JacobiSVD<_MatrixType, QRPreconditioner>::compute(const Eigen::JacobiSVD<_MatrixType, QRPreconditioner>::MatrixType &, unsigned int) [with _MatrixType=Eigen::Matrix<double, -1, -1, 0, -1, -1>, QRPreconditioner=2]" at line 548 of "Eigen/src/SVD/JacobiSVD.h" instantiation of "Eigen::JacobiSVD<_MatrixType, QRPreconditioner>::JacobiSVD(const Eigen::JacobiSVD<_MatrixType, QRPreconditioner>::MatrixType &, unsigned int) [with _MatrixType=Eigen::Matrix<double, -1, -1, 0, -1, -1>, QRPreconditioner=2]" at line 257 of "Eigen/src/SVD/BDCSVD.h" instantiation of "Eigen::BDCSVD<_MatrixType> &Eigen::BDCSVD<_MatrixType>::compute(const Eigen::BDCSVD<_MatrixType>::MatrixType &, unsigned int) [with _MatrixType=Eigen::MatrixXd]" at line 142 of "Eigen/src/SVD/BDCSVD.h" instantiation of "Eigen::BDCSVD<_MatrixType>::BDCSVD(const Eigen::BDCSVD<_MatrixType>::MatrixType &, unsigned int) [with _MatrixType=Eigen::MatrixXd]" at line 3 of "test.cpp"
forgot to mention that this occurs for the current code snapshot from github; compilation runs fine with version 3.3.4
-- GitLab Migration Automatic Message -- This bug has been migrated to gitlab.com's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.com/libeigen/eigen/issues/1511.