aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/g++.dg/template/static23.C
blob: b28400a64d2fb6160054ae9903babe5c8e6102eb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// PR c++/26266

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

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

B<char> b;