blob: b9767dfb600dd9a019a2ff1a02e2ed76f0584035 (
plain)
1
2
3
4
5
6
7
8
|
// PR c++/9335
// We should not see an error about non-constant initialization.
template <int N> struct X {
static const int value = X<N-1>::value; // { dg-error "instantiation|incomplete" }
// { dg-message "recursively instantiated" "" { target *-*-* } 5 }
};
template struct X<1000>;
|