Re: [eigen] Problem with g++-4.4 -O2 and Eigen3

[ Thread Index | Date Index | More Archives ]

Hi Gael,

> (reverse foo.cpp and main.cpp). The effect is to change the order of
> the .o files at linking stage, and here that does the trick.

Thanks, and yes I can confirm it. Changing the order of linking
prevents the bug in the minimal test case.
However, this does not tell us yet, how we could prevent this kind of
bug in general in a larger project.

My conclusion for now is, that using *.lu().inverse() & friends with
g++-4.4 and O2/O3 is not safe.
Any further comments on this would be very much appreciated.

Btw., another way to prevent the bug is to add
"std::cerr << X << std::endl;" right after ";".
Very strange...

Hauke S.

Mail converted by MHonArc 2.6.19+