This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


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

Re: PR3042




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

--
Mark Mitchell                   mark@codesourcery.com
CodeSourcery, LLC               http://www.codesourcery.com


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