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: "B. Kosnik" <bkoz at nabi dot net>
- To: gcc-bugs at gcc dot gnu dot org
- Cc: jtc at acorntoolworks dot com
- Date: Wed, 26 Jun 2002 17:29:39 -0700
- Subject: Re: gcc-3.1 template inst. sometimes being emitted as global functions?
- Organization: secret_agent_headquarters
- Reply-to: bkoz at nabi dot net
> 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
best,
benjamin