diff options
author | Andrew Pinski <pinskia@physics.uc.edu> | 2003-12-22 20:42:58 +0000 |
---|---|---|
committer | Andrew Pinski <pinskia@gcc.gnu.org> | 2003-12-22 12:42:58 -0800 |
commit | 92a12fbcc49be3cc45d76d7b55ae8fe0be9da90d (patch) | |
tree | 48b8e3eb18a4828c52af140ab395186f2b5d21b9 /gcc/cp/tree.c | |
parent | 70a841609455d827919e6384fa466a6658e5a23d (diff) | |
download | gcc-92a12fbcc49be3cc45d76d7b55ae8fe0be9da90d.zip gcc-92a12fbcc49be3cc45d76d7b55ae8fe0be9da90d.tar.gz gcc-92a12fbcc49be3cc45d76d7b55ae8fe0be9da90d.tar.bz2 |
re PR c++/5050 (template instantiation depth exceeds/maybe recursion problem)
2003-12-22 Andrew Pinski <pinskia@physics.uc.edu>
PR c++/5050
* tree.c (cp_start_inlining): Remove.
(cp_end_inlining): Remove.
* cp-lang.c (LANG_HOOKS_TREE_INLINING_START_INLINING): Do not define.
(LANG_HOOKS_TREE_INLINING_END_INLINING): Do not define.
* cp-tree.h (cp_start_inlining): Do not declare.
(cp_end_inlining): Do not declare.
PR c++/5050
* g++.dg/template/recurse1.C: New test.
From-SVN: r74947
Diffstat (limited to 'gcc/cp/tree.c')
-rw-r--r-- | gcc/cp/tree.c | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/gcc/cp/tree.c b/gcc/cp/tree.c index 74e7399..426c3d7 100644 --- a/gcc/cp/tree.c +++ b/gcc/cp/tree.c @@ -2194,28 +2194,6 @@ cp_copy_res_decl_for_inlining (tree result, return var; } -/* Record that we're about to start inlining FN, and return nonzero if - that's OK. Used for lang_hooks.tree_inlining.start_inlining. */ - -int -cp_start_inlining (tree fn) -{ - if (DECL_TEMPLATE_INSTANTIATION (fn)) - return push_tinst_level (fn); - else - return 1; -} - -/* Record that we're done inlining FN. Used for - lang_hooks.tree_inlining.end_inlining. */ - -void -cp_end_inlining (tree fn ATTRIBUTE_UNUSED ) -{ - if (DECL_TEMPLATE_INSTANTIATION (fn)) - pop_tinst_level (); -} - /* Initialize tree.c. */ void |