+2003-03-06 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
+
+ PR c++/9188
+ * parser.c (cp_parser_type_parameter): Remove redundant `expect'
+ in error message.
+ (cp_parser_single_declaration): Likewise.
+
2003-03-05 Jason Merrill <jason@redhat.com>
PR c++/9440
/* Look for a keyword to tell us what kind of parameter this is. */
token = cp_parser_require (parser, CPP_KEYWORD,
- "expected `class', `typename', or `template'");
+ "`class', `typename', or `template'");
if (!token)
return error_mark_node;
parser->qualifying_scope = NULL_TREE;
parser->object_scope = NULL_TREE;
/* Look for a trailing `;' after the declaration. */
- if (!cp_parser_require (parser, CPP_SEMICOLON, "expected `;'")
+ if (!cp_parser_require (parser, CPP_SEMICOLON, "`;'")
&& cp_parser_committed_to_tentative_parse (parser))
cp_parser_skip_to_end_of_block_or_statement (parser);
/* If it worked, set *FRIEND_P based on the DECL_SPECIFIERS. */