summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/template/static24.C
blob: 3d8f9e326bf53d55f1415c46fe6955e60228a06f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
template<typename> struct A;

template<> struct A<char>
{
  static const char i = 1;
};

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

B<char> b;