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>, Jason Merrill <jason_merrill at redhat dot com>
- Subject: Re: PR3042
- From: David Edelsohn <dje at watson dot ibm dot com>
- Date: Mon, 11 Jun 2001 15:29:35 -0400
- cc: gdr at codesourcery dot com, bkoz at nabi dot net, libstdc++ at gcc dot gnu dot org
Are multiple modules with
template <typename T>
int S<double>::i = 1;
or
template <typename T>
int S<T>::i = 1;
allowed? I would have thought that at least the former would produce a
STRONG symbol in the data section.
Both of the examples produces references but no storage allocation
in GCC 3.0. Without an assignment, both produce common symbols.
Is Mark's proposal that only
template <typename T>
int S<double>::i;
was suppose to allocate storage?
David