This is the mail archive of the gcc@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]

Re: .weak vs. C++ templates. was: SCO 5.0.2 error


>>>>> H J Lu <hjl@lucon.org> writes:

 >> >>>>> H J Lu <hjl@lucon.org> writes:
 >> 
 >>  > If you go this route, you may just take out explicit instantiation
 >>  > support in the static library since the static linker won't search
 >>  > stlinst.o in libstdc++.a for weak definitions.
 >> 
 >> That's fine.  The explicit instantiations are there for the benefit of
 >> targets that don't support weak symbols.
 >> 

 > You better document it very well. It may be a surprise to many people
 > since the existing valid C++ codes may not work anymore with g++. It
 > may present a new porting issue.

Huh?  Why would this break existing code?

Jason


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