This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: PR3042
- To: gcc at gcc dot gnu dot org, mark at codesourcery dot com
- Subject: Re: PR3042
- From: "John David Anglin" <dave at hiauly1 dot hia dot nrc dot ca>
- Date: Mon, 11 Jun 2001 22:46:48 -0400 (EDT)
> 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)