cp-tree.h (TMPL_ARGS_HAVE_MULTIPLE_LEVELS): Move here from pt.c.
authorMark Mitchell <mark@codesourcery.com>
Wed, 29 Sep 1999 17:24:21 +0000 (17:24 +0000)
committerMark Mitchell <mmitchel@gcc.gnu.org>
Wed, 29 Sep 1999 17:24:21 +0000 (17:24 +0000)
commitb5ac18ea8c1365118cfee58840ff738b0de67b5e
tree775f4aa955fdfd22ef0cbf7763b5945fd4ab87e1
parent0acbb8d94d6268bff84fb87e6e7e25768b58911f
cp-tree.h (TMPL_ARGS_HAVE_MULTIPLE_LEVELS): Move here from pt.c.

* cp-tree.h (TMPL_ARGS_HAVE_MULTIPLE_LEVELS): Move here from pt.c.
(TMPL_ARGS_DEPTH, TMPL_ARGS_LEVEL, SET_TMPL_ARGS_LEVEL): Likewise.
(TMPL_ARG, SET_TMPL_ARG, NUM_TMPL_ARGS, TMPL_PARMS_DEPTH): Likewise.
* error.c (dump_template_bindings): Remove unused parameter.
Handle multiple levels of template parameters.
(dump_template_decl): Use `parms', not `args', for template
parameters.  Fix thinko.
(dump_function_decl): Use DECL_TEMPLATE_INSTANTIATION.  Don't pass
flags to dump_template_bindings.
* pt.c (TMPL_ARGS_HAVE_MULTIPLE_LEVELS): Move to cp-tree.h.
(TMPL_ARGS_DEPTH, TMPL_ARGS_LEVEL, SET_TMPL_ARGS_LEVEL): Likewise.
(TMPL_ARG, SET_TMPL_ARG, NUM_TMPL_ARGS, TMPL_PARMS_DEPTH): Likewise.
(tsubst_copy): Clarify variable name.
(most_general_template): Robustify.

From-SVN: r29708
gcc/cp/ChangeLog
gcc/cp/cp-tree.h
gcc/cp/error.c
gcc/cp/pt.c
gcc/testsuite/g++.old-deja/g++.pt/error1.C [new file with mode: 0644]