aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/g++.dg/template/recurse3.C
blob: f1db7c5cbca04d33c72a8bdff9635d8f59c9fce4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// PR c++/44609
// { dg-options -ftemplate-depth=10 }

template<int N>
void f()
{
  0 = 0;			// { dg-error "lvalue required" }
  f<N+1>();			// { dg-bogus "instantiation depth" }
}

int main()
{
  f<0>();
}