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++/11880] [regression] implicit template instantiation instantiate unused class methods


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.


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