This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/17648] [3.3 regression] template destructor was not called for inherited classes
- From: "hs at profiforms dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 24 Sep 2004 13:20:57 -0000
- Subject: [Bug c++/17648] [3.3 regression] template destructor was not called for inherited classes
- References: <20040924081036.17648.hs@profiforms.de>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From hs at profiforms dot de 2004-09-24 13:20 -------
I new the C++ standard and usually I use namespaces std or -Wno-deprecated
for older sources. Plaece use for this example -Wno-deprecated.
The output when the program is running should be:
Constructor
Destructor
Constructor
Destructor
...
In g++ 3.3.1 on Linux Intel, SunOS und HP-UX the Output is:
Constructor
Constructor
...
Without destructor the program is feeding memory.
Meanwhile I've tested g++ 2.952 on an old 32-Bit HP-UX. On this system it's
working well.
Holger
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17648