re PR c++/14008 (Confusing diagnostic when omitting a template parameter)
authorGiovanni Bajo <giovannibajo@gcc.gnu.org>
Thu, 5 Feb 2004 16:48:54 +0000 (16:48 +0000)
committerGiovanni Bajo <giovannibajo@gcc.gnu.org>
Thu, 5 Feb 2004 16:48:54 +0000 (16:48 +0000)
commit2097b5f2d342d2910e322a4140635c25bfef04ec
tree605cacb4eca2bf2250ec9a4f597be3794b87fcff
parent5ad136540ef6fae18e70f7745f2e962004bbc5cf
re PR c++/14008 (Confusing diagnostic when omitting a template parameter)

PR c++/14008
* parser.c (cp_parser_diagnose_invalid_typename): Removed parsing
code, only emits the diagnostic now. Added lookup of the identifier
and support for qualified ids.
(cp_parser_parse_and_diagnose_invalid_type_name): New function.
Parse an (invalid) type name as id-expression within a declarator.
(cp_parser_simple_declaration): Use it.
(cp_parser_member_declaration): Likewise.
(cp_parser_make_typename_type): New function. Handle errors through
cp_parser_diagnose_invalid_typename.
(cp_parser_elaborated_type_specifier): Use it.

From-SVN: r77323
gcc/cp/ChangeLog
gcc/cp/parser.c