This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: gcc-3.1 template inst. sometimes being emitted as global functions?
- From: jtc at acorntoolworks dot com (J.T. Conklin)
- To: bkoz at nabi dot net
- Cc: gcc-bugs at gcc dot gnu dot org
- Date: 26 Jun 2002 19:19:36 -0700
- Subject: Re: gcc-3.1 template inst. sometimes being emitted as global functions?
- References: <20020626172939.14728d7b.bkoz@nabi.net>
- Reply-to: jtc at acorntoolworks dot com
"B. Kosnik" <bkoz@nabi.net> writes:
> > For a handful of our source files, the `std::string::assign(char
> > const*, unsigned)' method is being instantiated and emitted in objects
> > as a global function, which results in multiple definition errors
> > during linking. In all our other files, it's a unresolved reference
> > (which is satisfied by libstdc++.a).
>
> This is somewhat familiar. There was a problem with the 'external
> template' template syntax in the libstdc++-v3 header files on some
> targets, which may be related.
>
> See:
> http://gcc.gnu.org/ml/gcc-patches/2002-05/msg01466.html
Thanks, I applied that change to my tree and everything works fine now.
--jtc
--
J.T. Conklin