1// PR c++/9335
2// We should not see an error about non-constant initialization.
3
4template <int N> struct X {
5    static const int value = X<N-1>::value; // { dg-error "depth" }
6};
7template struct X<1000>;
8
9// { dg-prune-output "compilation terminated" }
10