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

Reply via email to