summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/template/static22.C
blob: 02c7a0cd67d5bf4f91bf4df49f834a07f5dd47b6 (plain)
1
2
3
4
5
6
7
8
9
10
11
// PR c++/26266

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

A<char> a;