* parser.c (cp_parser_check_for_invalid_template_id): tag_type parm.
commitaa2f35a5b2da6b87ac830c6a520b994e11538d44
authorjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 27 Jun 2012 19:19:18 +0000 (27 19:19 +0000)
committerjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 27 Jun 2012 19:19:18 +0000 (27 19:19 +0000)
tree08122aded3c3507e845d04fc40532dd8e0a2adcb
parentbb2431ccd16b2baab15aa4a39e77526a0e8666fe
* parser.c (cp_parser_check_for_invalid_template_id): tag_type parm.
(cp_parser_simple_type_specifier, cp_parser_class_head): Adjust.
(cp_parser_elaborated_type_specifier): Adjust.
* decl.c (duplicate_decls): Return error_mark_node on template
mismatch.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@189025 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/cp/ChangeLog
gcc/cp/decl.c
gcc/cp/parser.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp0x/override2.C
gcc/testsuite/g++.dg/parse/crash28.C
gcc/testsuite/g++.dg/template/error5.C