]> git.ipfire.org Git - thirdparty/gcc.git/commit - gcc/cp/semantics.c
re PR c++/13810 (ICE on invalid default templates)
authorGiovanni Bajo <giovannibajo@gcc.gnu.org>
Sun, 25 Jan 2004 22:43:08 +0000 (22:43 +0000)
committerGiovanni Bajo <giovannibajo@gcc.gnu.org>
Sun, 25 Jan 2004 22:43:08 +0000 (22:43 +0000)
commita3a503a57298d397b65d9e9599e1c0e5db552858
tree2c5d5e1c3409aad85f5a549b959cd599fbaff44f
parent91eab3788d093dab188305f7d0befb813b310824
re PR c++/13810 (ICE on invalid default templates)

PR c++/13810
* parser.c (cp_parser_type_parameter): When cp_parser_id_expression
returns a TYPE_DECL. no further lookup is required.
* semantics.c (check_template_template_default_arg): A TYPE_DECL
is invalid. Rework to give better diagnostics.

From-SVN: r76593
gcc/cp/ChangeLog
gcc/cp/parser.c
gcc/cp/semantics.c