summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/template/static25.C
blob: 20c0c846e3a31e596bb4dc995f37ff845ad9b9a5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// PR c++/27819
 
struct A
{
  static const char i = 1;
};

template<int> struct B
{
  static const int j = A::i;
  int x[int(j)];
};

B<0> b;