aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason Merrill <jason@gcc.gnu.org>1998-10-29 15:18:48 -0500
committerJason Merrill <jason@gcc.gnu.org>1998-10-29 15:18:48 -0500
commitba4f4e5d1cc4bf5dc19167c5fd2179e100cdf5f0 (patch)
tree9f3178feaaeaf520dd3283b31fc0b168a44a3a73
parentfaff4ab8c58604e4d521dabf3ae33a4ab0481d7e (diff)
downloadgcc-ba4f4e5d1cc4bf5dc19167c5fd2179e100cdf5f0.zip
gcc-ba4f4e5d1cc4bf5dc19167c5fd2179e100cdf5f0.tar.gz
gcc-ba4f4e5d1cc4bf5dc19167c5fd2179e100cdf5f0.tar.bz2
* pt.c (push_template_decl_real):Remove unused var.
(is_member_template_class): #if 0. From-SVN: r23432
-rw-r--r--gcc/cp/pt.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/gcc/cp/pt.c b/gcc/cp/pt.c
index 71d080b..a8b2e8f8 100644
--- a/gcc/cp/pt.c
+++ b/gcc/cp/pt.c
@@ -469,6 +469,7 @@ is_member_template (t)
return 0;
}
+#if 0 /* UNUSED */
/* Returns non-zero iff T is a member template class. See
is_member_template for a description of what precisely constitutes
a member template. */
@@ -493,6 +494,7 @@ is_member_template_class (t)
return (TMPL_PARMS_DEPTH (DECL_TEMPLATE_PARMS (t)) >
template_class_depth (DECL_CONTEXT (t)));
}
+#endif
/* Return a new template argument vector which contains all of ARGS,
but has as its innermost set of arguments the EXTRA_ARGS. The
@@ -2167,7 +2169,7 @@ push_template_decl_real (decl, is_friend)
else
{
tree a, t, current, parms;
- int mem, i;
+ int i;
if (CLASSTYPE_TEMPLATE_INSTANTIATION (ctx))
cp_error ("must specialize `%#T' before defining member `%#D'",
@@ -2222,7 +2224,6 @@ push_template_decl_real (decl, is_friend)
/* Make sure the template headers we got make sense. */
- mem = (is_member_template (tmpl) || is_member_template_class (tmpl));
parms = DECL_TEMPLATE_PARMS (tmpl);
i = TMPL_PARMS_DEPTH (parms);
if (TMPL_ARGS_DEPTH (args) != i)