fix a couple of ICE with gcc 4.0.1

This commit is contained in:
Gael Guennebaud
2010-02-12 09:41:56 +01:00
parent 1701a5d1f8
commit a76950bdab
4 changed files with 6 additions and 6 deletions

View File

@@ -112,7 +112,7 @@ template<typename MatrixType> void product_notemporary(const MatrixType& m)
// Zero temporaries for lazy products ...
VERIFY_EVALUATION_COUNT( Scalar tmp = 0; tmp += Scalar(RealScalar(1)) / (m3.transpose().lazyProduct(m3)).diagonal().sum(), 0 );
// ... and even no temporary for even deeply (>=2) nested products
// ... and even no temporary for even deeply (>=2) nested products
VERIFY_EVALUATION_COUNT( Scalar tmp = 0; tmp += Scalar(RealScalar(1)) / (m3.transpose() * m3).diagonal().sum(), 0 );
VERIFY_EVALUATION_COUNT( Scalar tmp = 0; tmp += Scalar(RealScalar(1)) / (m3.transpose() * m3).diagonal().array().abs().sum(), 0 );