[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:54:00 GMT 2004


------- Additional Comments From hs at profiforms dot de  2004-09-24 13:54 -------
I've tested in my real program to write only one call in the template 
desructor 

template <class T> ListT<T>::~ListT()
{DeleteContent();
}//end of template <class T> ListT<T>::~ListT()
 
On Linux it works for some instances but not for all. On HP-UX it don't work 
in all cases.

As workaround I switch to g++ 2.95.2 on all machines.

Holger 

-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17648



More information about the Gcc-bugs mailing list