diff --git a/Eigen/src/Core/Assign.h b/Eigen/src/Core/Assign.h index 3a621b19f..0ecad610f 100644 --- a/Eigen/src/Core/Assign.h +++ b/Eigen/src/Core/Assign.h @@ -419,9 +419,9 @@ struct ei_assign_impl::size; - const Index alignedSize = (size/packetSize)*packetSize; + enum { size = Derived1::SizeAtCompileTime, + packetSize = ei_packet_traits::size, + alignedSize = (size/packetSize)*packetSize }; ei_assign_innervec_CompleteUnrolling::run(dst, src); ei_assign_DefaultTraversal_CompleteUnrolling::run(dst, src);