This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/17873] order of static destructors wrong
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 6 Oct 2004 23:04:38 -0000
- Subject: [Bug c++/17873] order of static destructors wrong
- References: <20041006225911.17873.bkoz@gcc.gnu.org>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-10-06 23:04 -------
Did you configure with --enable-__cxa_atexit if not there is another bug about this problem.
Quote from the installer documentation:
Define if you want to use __cxa_atexit, rather than atexit, to register C++ destructors for local statics
and global objects. This is essential for fully standards-compliant handling of destructors, but requires
__cxa_atexit in libc. This option is currently only available on systems with GNU libc. When enabled, this
will cause -fuse-cxa-exit to be passed by default.
--
What |Removed |Added
----------------------------------------------------------------------------
Severity|critical |normal
Target Milestone|3.4.3 |---
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17873