re PR c++/10771 (Unreadable error message for illegal specialization)
authorMark Mitchell <mark@codesourcery.com>
Wed, 3 Dec 2003 19:05:12 +0000 (19:05 +0000)
committerMark Mitchell <mmitchel@gcc.gnu.org>
Wed, 3 Dec 2003 19:05:12 +0000 (19:05 +0000)
commitee43dab5e00224b3c0ec40112e65802c966e3343
tree706e464c3361e136a06a7c457742151daf6c4595
parentbee6ab3e7241334f1a3550c4e0ac9fe8be715a6b
re PR c++/10771 (Unreadable error message for illegal specialization)

PR c++/10771
* parser.c (cp_parser_check_for_invalid_template_id): New
function.
(cp_parser_simple_type_specifier): Use it.
(cp_parser_elaborated_type_specifier): Likewise.
(cp_parser_class_head): Likewise.

PR c++/10771
* g++.dg/template/error5.C: New test.

From-SVN: r74239
gcc/cp/ChangeLog
gcc/cp/parser.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/template/error5.C [new file with mode: 0644]