diff options
| -rw-r--r-- | gcc/testsuite/g++.old-deja/g++.pt/infinite1.C | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gcc/testsuite/g++.old-deja/g++.pt/infinite1.C b/gcc/testsuite/g++.old-deja/g++.pt/infinite1.C index 22f0073..7e7e5fe 100644 --- a/gcc/testsuite/g++.old-deja/g++.pt/infinite1.C +++ b/gcc/testsuite/g++.old-deja/g++.pt/infinite1.C @@ -1,6 +1,8 @@ // Test for catching infinitely recursive instantiations. // Origin: Jason Merrill <jason@redhat.com> +// Special g++ Options: -ftemplate-depth-10 + template <int i> void f() { f<i+1>(); // ERROR - excessive recursion @@ -10,7 +12,7 @@ template <int i> void f() // error first about the recursive template instantions. But, in case // the compiler fails to catch the error, this will keep it from // running forever instantiating more and more templates. -template <> void f<100>(); +template <> void f<11>(); int main() { |
