This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/26723] invocation order of functions registered with atexit() not as expected



------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]