------- Comment #1 from pinskia at gcc dot gnu dot org 2006-03-16 21:28 ------- Can you give the output of "gcc -v"? This is the output I get: FIRST::FIRST() SECOND::SECOND() whatever @post_exit SECOND::~SECOND() FIRST::~FIRST() @pre_exit
--enable-__cxa_atexit is required to get this behavior, otherwise you get the wrong behvaior due to deconstructors running at the wrong time. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26723