Skip to content

Commit 9b4ac8a

Browse files
NinaRannsiains
authored andcommitted
fixing the erroneous use of cp_parser_skip_to_closing_parenthesis_1
1 parent 4066e2a commit 9b4ac8a

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

gcc/cp/parser.cc

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31916,9 +31916,10 @@ cp_parser_function_contract_specifier (cp_parser *parser)
3191631916

3191731917
if (identifier == error_mark_node)
3191831918
{
31919-
cp_parser_skip_to_closing_parenthesis_1 (parser, /*recovering=*/true,
31920-
CPP_CLOSE_PAREN,
31921-
/*consume_paren=*/true);
31919+
cp_parser_skip_to_closing_parenthesis (parser,
31920+
/*recovering=*/true,
31921+
/*or_comma=*/false,
31922+
/*consume_paren=*/true);
3192231923
return error_mark_node;
3192331924
}
3192431925

@@ -31936,9 +31937,9 @@ cp_parser_function_contract_specifier (cp_parser *parser)
3193631937
cp_token *first = cp_lexer_peek_token (parser->lexer);
3193731938

3193831939
/* Skip until we reach a closing token ). */
31939-
cp_parser_skip_to_closing_parenthesis_1 (parser,
31940+
cp_parser_skip_to_closing_parenthesis (parser,
3194031941
/*recovering=*/false,
31941-
CPP_CLOSE_PAREN,
31942+
/*or_comma=*/false,
3194231943
/*consume_paren=*/false);
3194331944

3194431945
cp_token *last = cp_lexer_peek_token (parser->lexer);

0 commit comments

Comments
 (0)