From: Jason Merrill Date: Thu, 10 Jan 2002 21:03:45 +0000 (-0500) Subject: specify template depth X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=6c21456ca24d42a4ec2c20131945d13b8f075f6d;p=gcc.git specify template depth From-SVN: r48753 --- diff --git a/gcc/testsuite/g++.old-deja/g++.pt/infinite1.C b/gcc/testsuite/g++.old-deja/g++.pt/infinite1.C index 22f00739c87..7e7e5fe9814 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 +// Special g++ Options: -ftemplate-depth-10 + template void f() { f(); // ERROR - excessive recursion @@ -10,7 +12,7 @@ template 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() {