This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: YAB (Yet Another HP/gcc bug)
- From: Alexandre Oliva <aoliva at redhat dot com>
- To: "Lev Assinovsky" <LAssinovsky at algorithm dot aelita dot com>
- Cc: "Gcc-Bugs (E-mail)" <gcc-bugs at gcc dot gnu dot org>
- Date: 15 Aug 2003 02:05:33 -0300
- Subject: Re: YAB (Yet Another HP/gcc bug)
- Organization: GCC Team, Red Hat
- References: <3F6F4712B759A34ABD453A8B39C10D62D4D13A@bagman.edm.com>
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