Merge from mainline (167278:168000).
[official-gcc/graphite-test-results.git] / gcc / testsuite / g++.dg / template / recurse2.C
blobb9767dfb600dd9a019a2ff1a02e2ed76f0584035
1 // PR c++/9335
2 // We should not see an error about non-constant initialization.
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>;