This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/24389] tr1::unordered_map duplicate symbols (not extern?)
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 15 Oct 2005 20:21:57 -0000
- Subject: [Bug c++/24389] tr1::unordered_map duplicate symbols (not extern?)
- References: <bug-24389-11529@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #2 from pinskia at gcc dot gnu dot org 2005-10-15 20:21 -------
Hmm
template<int dummy>
struct X
{
static const int n_primes = 256;
static const unsigned long primes[n_primes + 1];
};
template<int dummy>
const int X<dummy>::n_primes;
template<int dummy>
const unsigned long X<dummy>::primes[n_primes + 1] =
{ 0 };
and then use X<0>::primes in a function.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24389