typeck.c (comptypes, [...]): Add parameter comparison.
authorKriang Lerdsuwanakij <lerdsuwa@scf-fs.usc.edu>
Sun, 12 Jul 1998 03:06:46 +0000 (23:06 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Sun, 12 Jul 1998 03:06:46 +0000 (23:06 -0400)
commit744fac594b8f707fc4bbb7acbdcf4b8753d4cd71
tree3c114b63cc3899e04a8e8ac4bd43415fb4085f14
parenteda600e865cff603d9398c48df114693da913458
typeck.c (comptypes, [...]): Add parameter comparison.

* typeck.c (comptypes, case TEMPLATE_TEMPLATE_PARM): Add parameter
comparison.
* pt.c (for_each_template_parm, case TEMPLATE_DECL): If it is a
template template parameter, record its use.
(for_each_template_parm, case TEMPLATE_TEMPLATE_PARM): Traverse
its template arguments if exists.
* pt.c (coerce_template_template_parms): New function equivalent
to coerce_template_parms when IS_TMPL_PARM is true.
(coerce_template_parms): Use it.  Remove the IS_TMPL_PARM parameter,
all callers changed.
(coerce_template_parms): Access ARGLIST properly when creating a
new vector.  Only accept implicit TYPE_DECL as valid argument for
a template template parameter when it is a base class of
current_class_type.  Don't display error message when COMPLAIN is
false.

From-SVN: r21073
gcc/cp/ChangeLog
gcc/cp/method.c
gcc/cp/pt.c
gcc/cp/typeck.c