------- Comment #2 from bitti at iki dot fi 2007-10-17 12:21 ------- I also tried on other compilers. Sun's compiler (CC: Sun C++ 5.9 SunOS_sparc Patch 124863-01 2007/07/25) shows the same bug as Gcc. Microsoft Visual Studio 2005 works ok and destroys both objects.
-- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33799