projects
/
gcc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
04894c5
)
specify template depth
author
Jason Merrill
<jason@gcc.gnu.org>
Thu, 10 Jan 2002 21:03:45 +0000
(16:03 -0500)
committer
Jason 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
patch
|
blob
|
history
diff --git
a/gcc/testsuite/g++.old-deja/g++.pt/infinite1.C
b/gcc/testsuite/g++.old-deja/g++.pt/infinite1.C
index 22f00739c8761f527c824abd007cef93cc9f2b04..7e7e5fe981411cc70cbcbd91f48688c9e48bf998 100644
(file)
--- 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<1
00
>();
+template <> void f<1
1
>();
int main()
{