+1997-10-22 Brendan Kehoe <brendan@cygnus.com>
+
+ * method.c (build_template_parm_names, build_decl_overload_real):
+ Add static to definitions.
+ * pt.c (add_to_template_args, note_template_header,
+ processing_explicit_specialization, type_unification_real): Likewise.
+ ({determine,check}_explicit_specialization): Use a single string for
+ error messages.
+
Mon Oct 20 12:06:34 1997 Jason Merrill <jason@yorick.cygnus.com>
* except.c (expand_exception_blocks): Call do_pending_stack_adust.
/* Add encodings for the vector of template parameters in PARMLIST,
given the vector of arguments to be substituted in ARGLIST. */
-void
+static void
build_template_parm_names (parmlist, arglist)
tree parmlist;
tree arglist;
return get_identifier ((char *)obstack_base (&scratch_obstack));
}
\f
-tree
+static tree
build_decl_overload_real (dname, parms, ret_type, tparms, targs,
for_method)
tree dname;
/* Return a new template argument vector which contains all of ARGS,
but has as its innermost set of arguments the EXTRA_ARGS. */
-tree
+static tree
add_to_template_args (args, extra_args)
tree args;
tree extra_args;
/* We've just seen a template header. If SPECIALIZATION is non-zero,
it was of the form template <>. */
-void
+static void
note_template_header (specialization)
int specialization;
{
types that appeared was TEMPLATE_COUNT, is an explicit
specialization. */
-int
-processing_explicit_specialization(template_count)
+static int
+processing_explicit_specialization (template_count)
int template_count;
{
/* A function declaration is an explicit specialization of a member
if (matching_fns == NULL_TREE)
{
if (complain)
- cp_error ("Specialization of `%s' does not match any template "
- "declaration.", IDENTIFIER_POINTER (name));
+ cp_error ("Specialization of `%s' does not match any template declaration.",
+ IDENTIFIER_POINTER (name));
*targs_out = NULL_TREE;
return NULL_TREE;
}
an explicit instantiation. */
return 2;
else if (pedantic)
- pedwarn ("Explicit specialization not preceeded by "
- "`template <>'");
+ pedwarn ("Explicit specialization not preceeded by `template <>'");
}
if (TREE_CODE (declarator) != TEMPLATE_ID_EXPR)
}
-int
+static int
type_unification_real (tparms, targs, parms, args, nsubsts, subr,
strict, allow_incomplete)
tree tparms, *targs, parms, args;