+2008-04-09 Volker Reichelt <v.reichelt@netcologne.de>
+
+ * parser.c (cp_parser_template_parameter_list): Simplify.
+
2008-04-07 James E. Wilson <wilson@tuliptree.org>
* pt.c (tsubst_copy, case SIZEOF_EXPR): Initialize len.
while (true)
{
tree parameter;
- cp_token *token;
bool is_non_type;
bool is_parameter_pack;
parameter_list = chainon (parameter_list, err_parm);
}
- /* Peek at the next token. */
- token = cp_lexer_peek_token (parser->lexer);
- /* If it's not a `,', we're done. */
- if (token->type != CPP_COMMA)
+ /* If the next token is not a `,', we're done. */
+ if (cp_lexer_next_token_is_not (parser->lexer, CPP_COMMA))
break;
/* Otherwise, consume the `,' token. */
cp_lexer_consume_token (parser->lexer);