This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/11880] [regression] implicit template instantiation instantiate unused class methods
- From: "bangerth at dealii dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 11 Aug 2003 22:01:15 -0000
- Subject: [Bug c++/11880] [regression] implicit template instantiation instantiate unused class methods
- References: <20030811101922.11880.casteyde.christian@free.fr>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11880
------- Additional Comments From bangerth at dealii dot org 2003-08-11 22:01 -------
The destructor of ptr is needed if an exception is thrown _after_ ptr is
constructed, i.e. in other member initializers or in the body of the
constructor. This holds for the default constructor as well. Alas,
there is indeed no such thing here, so in this particular case there
is no need for the destructor to be available.
I'm not pushing for this to be checked, though. My view is that just
because you don't need it in a particular case doesn't justify
complicating the compiler. I leave it to you, Nathan, whether this
report should be reopened or not.
W.