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: PR3042


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


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