* decl.c (make_typename_type): s/parameters/arguments/.
[official-gcc.git] / gcc / testsuite / g++.dg / cpp0x / constexpr-recursion.C
blob8c4201e1ec2e3d1b16279a2fd77e1dadf6c22d19
1 // Test that we catch excessive recursion.
2 // { dg-do compile { target c++11 } }
3 // { dg-options "-fconstexpr-depth=5" }
4 // { dg-prune-output "in constexpr expansion" }
5 constexpr int f (int i) { return f (i-1); } // { dg-message "in .constexpr. expansion of " }
6 constexpr int i = f(42);        // { dg-error ".constexpr. evaluation depth|in .constexpr. expansion of " }