gcc-3.1 template inst. sometimes being emitted as global functions?

J.T. Conklin jtc@acorntoolworks.com
Wed Jun 26 23:16:00 GMT 2002


"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



More information about the Gcc-bugs mailing list