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] New: template destrucktor was not called for inherited classes


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


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