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 "depth" }
13 template <> struct F<52>
15 int operator()() { return 0; }
21 return f(); // { dg-message "from here" }
24 // { dg-prune-output "compilation terminated" }