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: gcc-3.1 template inst. sometimes being emitted as global functions?


> 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


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