1 // PR c++/24569
2 
3 template <int dim>
4 struct S
5 {
6   static const int u = 2 * dim;
7   static const int p[u];
8   static int f();
9 };
10 
11 template <>
f()12 inline int S<3>::f () { return 1; }
13 
14 template <int dim> const int S<dim>::u;
15 
16 template class S<3>;
17