specify template depth
authorJason Merrill <jason@gcc.gnu.org>
Thu, 10 Jan 2002 21:03:45 +0000 (16:03 -0500)
committerJason Merrill <jason@gcc.gnu.org>
Thu, 10 Jan 2002 21:03:45 +0000 (16:03 -0500)
From-SVN: r48753

gcc/testsuite/g++.old-deja/g++.pt/infinite1.C

index 22f00739c8761f527c824abd007cef93cc9f2b04..7e7e5fe981411cc70cbcbd91f48688c9e48bf998 100644 (file)
@@ -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()
 {