This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/26621] Template instantiation fails for -O1 -finline-functions
- From: "pinskia at physics dot uc dot edu" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 10 Mar 2006 13:58:19 -0000
- Subject: [Bug c++/26621] Template instantiation fails for -O1 -finline-functions
- References: <bug-26621-12333@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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