This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/17648] New: template destrucktor 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 08:10:39 -0000
- Subject: [Bug c++/17648] New: template destrucktor was not called for inherited classes
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
I've an unexpectet behavior while defining templates.
In my example I show only the error. Please do not think it's my program
itselfe.
Please compile and link the main.cpp whitout any additional files. The example
is complete.
What I'm doing here:
I step thousand of times through a function which create and destroy an object
includes an subobject.
The subobject is a child of an templete class.
On stdout you can see that the constructor was called but the the destructor
never.
On Borland and MS it runs well. Why not in g++?
--
Summary: template destrucktor was not called for inherited
classes
Product: gcc
Version: 3.3.1
Status: UNCONFIRMED
Severity: critical
Priority: P2
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: hs at profiforms dot de
CC: gcc-bugs at gcc dot gnu dot org
GCC build triplet: same
GCC host triplet: found fore Linux Intel HP-UX Solaris
GCC target triplet: same
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17648