Do not set AnnoyingScalar::dont_throw if not defined EIGEN_TEST_ANNOYING_SCALAR_DONT_THROW.
In conservative_resize.cpp this line is presented
AnnoyingScalar::dont_throw = true;
But that member is not necessarily declared in AnnoyingScalar. E.g. that member is not declared if the macro EIGEN_TEST_ANNOYING_SCALAR_DONT_THROW is defined.
Edited by Nikolay Tverdokhleb