Created attachment 363153 [details]
test program that triggers this bug
Description of problem:
There is a problem with the -O1 optimization together with inline code, loops, class constructors and temporal objects.
Version-Release number of selected component (if applicable):
see attached test program.
here the results from a Fedora 11 system with the mentioned compiler
> /usr/bin/gcc -lstdc++ test.cpp
> /usr/bin/gcc -lstdc++ -O1 test.cpp
> /usr/bin/gcc -lstdc++ -O2 test.cpp
PS: I've already created a bug report for Gentoo Linux but the same happens on Fedora 11 too (that's why I create also a Fedora bug report)
Works just fine with gcc-4.4.1-17.