This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/32688] Dynamic linking cause static Dtor and Ctor to ran twice on same instance
- From: "ranc at mobixell dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 9 Jul 2007 07:08:03 -0000
- Subject: [Bug c++/32688] Dynamic linking cause static Dtor and Ctor to ran twice on same instance
- References: <bug-32688-14820@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #2 from ranc at mobixell dot com 2007-07-09 07:08 -------
Attached is a gzipped tag ball with a sample problem.
just execute from bash the compile.bash script and execute ./main .
(I use RHEL 4.0)
[ranc@Rans_Linux test]$ g++ --version
g++ (GCC) 3.4.5 20051201 (Red Hat 3.4.5-2)
Copyright (C) 2004 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
[ranc@Rans_Linux test]$ ld --version
GNU ld version 2.15.92.0.2 20040927
Copyright 2002 Free Software Foundation, Inc.
This program is free software; you may redistribute it under the terms of
the GNU General Public License. This program has absolutely no warranty.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32688