1 // Test for handling of excessive template recursion.
2 // { dg-options "-ftemplate-depth-50 -O" }
4 template <int I> struct F
8 F<I+1> f; // { dg-error "" "" }
9 return f()*I; // { dg-error "" "" }
13 template <> struct F<52>
15 int operator()() { return 0; }
21 return f(); // { dg-error "instantiate" "excessive recursion" }