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++/26621] Template instantiation fails for -O1 -finline-functions



------- 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


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