From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5721 invoked by alias); 24 Sep 2004 08:10:41 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 5711 invoked by uid 48); 24 Sep 2004 08:10:39 -0000 Date: Fri, 24 Sep 2004 08:10:00 -0000 From: "hs at profiforms dot de" To: gcc-bugs@gcc.gnu.org Message-ID: <20040924081036.17648.hs@profiforms.de> Reply-To: gcc-bugzilla@gcc.gnu.org Subject: [Bug c++/17648] New: template destrucktor was not called for inherited classes X-Bugzilla-Reason: CC X-SW-Source: 2004-09/txt/msg02903.txt.bz2 List-Id: 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