This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]