------- Comment #3 from rguenth at gcc dot gnu dot org 2010-01-16 14:12 ------- template<class T> class smart_pointer { public: operator T* () const { } operator bool () const { } operator bool () { } }; class Context { }; typedef smart_pointer<Context> ContextP; class SvnClient { ~SvnClient(); ContextP svnContext; }; SvnClient::~SvnClient() { delete svnContext; }
-- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42766