OSDN Git Service

2010-04-28 Manuel López-Ibáñez <manu@gcc.gnu.org>
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.dg / template / recurse2.C
1 // PR c++/9335
2 // We should not see an error about non-constant initialization.
3
4 template <int N> struct X {
5     static const int value = X<N-1>::value; // { dg-error "instantiation|incomplete" }
6   // { dg-message "recursively instantiated" "" { target *-*-* } 5 }
7 };
8 template struct X<1000>;