PR3042

John David Anglin dave@hiauly1.hia.nrc.ca
Mon Jun 11 20:00:00 GMT 2001


Forwarded message:
>From dave Mon Jun 11 22:46:48 EDT 2001
Subject: Re: PR3042
To: gcc@gcc.gnu.org, mark@codesourcery.com
Date: Mon, 11 Jun 2001 22:46:48 -0400 (EDT)
From: "John David Anglin" <dave@hiauly1>
X-Mailer: ELM [version 2.4 PL25]
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Content-Length: 492       

>   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.

Works on hpux 10.20:

505 (hiauly1)dave> /usr/local/bin/nm -C strong.o
40000000 D S<double>::i

Dave
-- 
J. David Anglin                                  dave.anglin@nrc.ca
National Research Council of Canada              (613) 990-0752 (FAX: 952-6605)


-- 
J. David Anglin                                  dave.anglin@nrc.ca
National Research Council of Canada              (613) 990-0752 (FAX: 952-6605)



More information about the Libstdc++ mailing list