[Bug c++/17648] [3.3 regression] template destructor was not called for inherited classes

hs at profiforms dot de gcc-bugzilla@gcc.gnu.org
Fri Sep 24 13:20:00 GMT 2004


------- 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



More information about the Gcc-bugs mailing list