error.c (dump_decl): Fix type of default arguments for template template parameters...
authorKriang Lerdsuwanakij <lerdsuwa@scf.usc.edu>
Tue, 3 Feb 1998 22:30:26 +0000 (22:30 +0000)
committerJason Merrill <jason@gcc.gnu.org>
Tue, 3 Feb 1998 22:30:26 +0000 (17:30 -0500)
commite7e6663285f1afc242a733d3d0f24626c9b0b4da
tree55e154b8c10f7bdc2b913ed6e2b8530c5def5bd8
parentd47d138a7d9f475a8c72859b20023a003026269b
error.c (dump_decl): Fix type of default arguments for template template parameters and nontype...

* error.c (dump_decl): Fix type of default arguments for template
template parameters and nontype template parameters.
* parse.y (template_parm): Handle invalid default template
template arguments here.
* parse.y (template_parm): Use template_arg instead of PTYPENAME
for default template template argument.
* pt.c (coerce_template_parms): Merge default template argument
codes.  Can treat RECORD_TYPE as template name if it is implicitly
created.  Fix argument index in error message.
* typeck.c (comptypes): Merge template argument comparison codes in
TEMPLATE_TEMPLATE_PARM and RECORD_TYPE.

From-SVN: r17650
gcc/cp/ChangeLog
gcc/cp/error.c
gcc/cp/parse.c
gcc/cp/parse.y
gcc/cp/pt.c
gcc/cp/typeck.c