aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorJason Merrill <jason@gcc.gnu.org>2002-01-10 16:03:45 -0500
committerJason Merrill <jason@gcc.gnu.org>2002-01-10 16:03:45 -0500
commit6c21456ca24d42a4ec2c20131945d13b8f075f6d (patch)
tree170129f77ba98989f6f775c1558bc47a0e34289f /gcc
parent04894c5a9e4ee2ac250c05c2d133ca6da3aab1a7 (diff)
downloadgcc-6c21456ca24d42a4ec2c20131945d13b8f075f6d.zip
gcc-6c21456ca24d42a4ec2c20131945d13b8f075f6d.tar.gz
gcc-6c21456ca24d42a4ec2c20131945d13b8f075f6d.tar.bz2
specify template depth
From-SVN: r48753
Diffstat (limited to 'gcc')
-rw-r--r--gcc/testsuite/g++.old-deja/g++.pt/infinite1.C4
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()
{