This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/72768] Potential bug about the order of destructors of static objects and atexit() callbacks in C++?
- From: "redi at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 01 Aug 2016 20:00:06 +0000
- Subject: [Bug c++/72768] Potential bug about the order of destructors of static objects and atexit() callbacks in C++?
- Auto-submitted: auto-generated
- References: <bug-72768-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=72768
--- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> ---
(In reply to lh_mouse from comment #0)
> Notwithstanding the vagueness of 'the completion of the initialization of an
> object',
The question hinges entirely on the definition of that term.
Arguably the object is not completely initialized until the principal
constructor returns.
And as pointed out on the mailing list, other compilers do the same.