This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: PR3042
- To: Mark Mitchell <mark at codesourcery dot com>
- Subject: Re: PR3042
- From: Jason Merrill <jason_merrill at redhat dot com>
- Date: 11 Jun 2001 23:43:16 +0100
- Cc: David Edelsohn <dje at watson dot ibm dot com>, "gdr at codesourcery dot com" <gdr at codesourcery dot com>, "bkoz at nabi dot net" <bkoz at nabi dot net>, "libstdc++ at gcc dot gnu dot org" <libstdc++ at gcc dot gnu dot org>
- References: <157350000.992294096@gandalf.codesourcery.com>
>>>>> "Mark" == Mark Mitchell <mark@codesourcery.com> writes:
> --On Monday, June 11, 2001 05:09:49 PM -0400 David Edelsohn
> <dje@watson.ibm.com> wrote:
>> Is there any statement (either with the current behavior or with
>> Mark's proposed change) that will generate a STRONG symbol in the data
>> section from a template static member instantiation?
>>
>> David
> Jason's recollection and mine is different on this point. If there is one
> it will be this:
> template <typename T> struct S {
> static int i;
> };
> template <typename T> int S<T>::i;
> template int S<double>::i;
> If this does not create a STRONG definition, nothing will, with the
> current behavior.
Yes, on AIX this should create a strong definition. On targets with weak
symbol support, it will be weak/comdat.
Jason