This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/17648] [3.3 regression] template destructor 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 13:54:15 -0000
- Subject: [Bug c++/17648] [3.3 regression] template destructor was not called for inherited classes
- References: <20040924081036.17648.hs@profiforms.de>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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