Eigen segfault no optimizations Solaris
问题 I have the following code: #include <Eigen/Dense> struct States { // Eigen::VectorXd v; Eigen::VectorXd v{Eigen::VectorXd::Ones(2)}; States() { // v.resize(2); // v << 1, 1; } }; States st; int main() {} Whenever I build the project under Solaris 11 (with g++4.9), with no optimizations, I get a segfault (core dumped) when running. After some digging and step-by-step debugging I think the faulty line is in DenseCoeffBase.h , inside function copyPacket , namely the line 537 derived().template