------- Comment #7 from pinskia at gcc dot gnu dot org 2006-03-10 13:58 ------- Subject: Re: Template instantiation fails for -O1 -finline-functions
> However, this doesn't explain, why the reference to > TTypeWrapper::~TTypeWrapper > is missing if the instance of CVectorWrap is allocated statically, and it is > not missing, if it is allocated dynamically. The VMT of CVectorWrap should be > created with instance.o the reference to TTypeWrapper::~TTypeWrapper will be > needed there. Hence, it should be instanciated automatically, and creating > CVectorWrap dynamically seems to proof that indeed it is. Explicit > instanciation is a orkaround, but IMHO it is not the solution. divirtualization is really what is happening and not inlining. -- Pinski -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26621