Stack overflow when passing matrix inverse as function argument
Submitted by Sergiu Deitsch
Assigned to Nobody
Link to original bugzilla bug (#993)
Version: 3.2
Description
The following code causes a stack overflow in DenseCoeffsBase.h line 212 (as for changeset 2e335363).
#include <Eigen/Core>
#include <Eigen/LU>template<class Derived>
void foo(const Eigen::MatrixBase<Derived>& value)
{
Eigen::Matrix2d tmp = value; // boom
}int main()
{
foo(Eigen::Matrix2d::Identity().inverse());
}
This does not happen, if I call .eval().
I'm using Visual Studio 12 2013.
Edited by Eigen Bugzilla