2014-01-30 Alangi Derick <alangiderick@gmail.com>
[official-gcc.git] / gcc / testsuite / g++.dg / template / recurse3.C
blobf1db7c5cbca04d33c72a8bdff9635d8f59c9fce4
1 // PR c++/44609
2 // { dg-options -ftemplate-depth=10 }
4 template<int N>
5 void f()
7   0 = 0;                        // { dg-error "lvalue required" }
8   f<N+1>();                     // { dg-bogus "instantiation depth" }
11 int main()
13   f<0>();