diff --git a/unsupported/test/matrix_function.cpp b/unsupported/test/matrix_function.cpp index 3455fb936..3b4cbfec6 100644 --- a/unsupported/test/matrix_function.cpp +++ b/unsupported/test/matrix_function.cpp @@ -94,6 +94,7 @@ struct randomMatrixWithImagEivals { static MatrixType run(const typename MatrixType::Index size) { + typedef typename MatrixType::Index Index; typedef typename MatrixType::Scalar Scalar; typedef typename MatrixType::RealScalar RealScalar; const Scalar imagUnit(0, 1);