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

struct B { 
  static const int N=10; 
}; 
 
template <int> struct X {}; 
 
template <typename> struct S { 
  static const int N = B::N; 
  X<N> x; 
}; 
 
template class S<float>;