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++/72768] Potential bug about the order of destructors of static objects and atexit() callbacks in C++?


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=72768

--- Comment #5 from Jonathan Wakely <redi at gcc dot gnu.org> ---
(In reply to Jonathan Wakely from comment #4)
> It is necessary for correctness that destructors are run for objects which
> have completed a constructor. It is not necessary for correctness to order
> static destructors after the destructor for an object still being

Oops, I meant atexit callbacks, not static destructors.

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