------- Comment #10 from jakub at gcc dot gnu dot org 2007-08-27 21:42 ------- This really can't be worked around, but has to be fixed properly. for i in "" "-g"; do ./g++ -B ./ -O2 $i -m32 -o auto_ptr /tmp/auto_ptr.ii -L../x86_64-unknown-linux-gnu/32/libstdc++-v3/src/.libs/ -Wl,-rpath,../x86_64-unknown-linux-gnu/32/libstdc++-v3/src/.libs/; ./auto_ptr; echo $?; done 0 auto_ptr: /export/gnu/import/rrs/127763/src/libstdc++-v3/testsuite/tr1/2_general_utilities/shared_ptr/assign/auto_ptr.cc:72: int test01(): Assertion `A::dtor_count == 1' failed. Aborted 134
This shows -g affects code generation in this case, which is a very severe problem. Will look into this tomorrow unless somebody beats me to do that. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33199