[Bug c++/11880] [regression] implicit template instantiation instantiate unused class methods
nathan at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Mon Aug 11 15:39:00 GMT 2003
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
nathan at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |INVALID
------- Additional Comments From nathan at gcc dot gnu dot org 2003-08-11 15:39 -------
your analysis is correct, B::B requires the ctors & dtors of its members to be
instantiated.[14.7.1]/2 says 'the function template specialization
is imlicitly instantiated when the specialization is referenced in a context that
requires that function definition to exist.' B::B requires ptr<A>::~ptr to exist.
More information about the Gcc-bugs
mailing list