mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-02-21 06:29:15 +08:00
re PR c++/9188 ([New parser] Strange wording of error message)
PR c++/9188 * parser.c (cp_parser_type_parameter): Remove redundant `expect' in error message. (cp_parser_single_declaration): Likewise. From-SVN: r63891
This commit is contained in:
parent
5c2e00ee5a
commit
8a6393df68
@ -1,3 +1,10 @@
|
||||
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
|
||||
|
@ -7754,7 +7754,7 @@ cp_parser_type_parameter (cp_parser* parser)
|
||||
|
||||
/* 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;
|
||||
|
||||
@ -13992,7 +13992,7 @@ cp_parser_single_declaration (cp_parser* parser,
|
||||
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. */
|
||||
|
Loading…
Reference in New Issue
Block a user