[Bug c++/26723] invocation order of functions registered with atexit() not as expected
pinskia at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Thu Mar 16 21:28:00 GMT 2006
------- 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
More information about the Gcc-bugs
mailing list