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]

Re: YAB (Yet Another HP/gcc bug)


On Aug 14, 2003, "Lev Assinovsky" <LAssinovsky@algorithm.aelita.com> wrote:

> Is there  work around, besides explicit template specialization?

You don't have to explicitly specialize, but you have to explicitly
instantiate.  It's actually the same problem: without weak symbols,
GCC can't generate (weak) definitions, because the linker would fail,
so it doesn't generate them at all, leaving it up to the user to
decide where to instantiate each template.  This is a pain, but GCC is
doing the best it can with the limited object file format it is set up
to use in this platform.

-- 
Alexandre Oliva   Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer                 aoliva@{redhat.com, gcc.gnu.org}
CS PhD student at IC-Unicamp        oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist                Professional serial bug killer


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