This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: .weak vs. C++ templates. was: SCO 5.0.2 error
- To: hjl at lucon dot org (H.J. Lu)
- Subject: Re: .weak vs. C++ templates. was: SCO 5.0.2 error
- From: Jason Merrill <jason at cygnus dot com>
- Date: 22 Oct 1999 18:31:12 -0700
- Cc: gcc at gcc dot gnu dot org
- References: <19991023004728.BA82B1B494@ocean.lucon.org>
>>>>> 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