https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97871

--- Comment #2 from Iain Sandoe <iains at gcc dot gnu.org> ---
(In reply to Marek Polacek from comment #1)
> Started with r11-4927.  Iain, I think the assert should go:
> 
> --- a/gcc/cp/parser.c
> +++ b/gcc/cp/parser.c
> @@ -13536,7 +13536,6 @@ cp_parser_declaration (cp_parser* parser, tree
> prefix_attrs)
>      {
>        cp_lexer_save_tokens (parser->lexer);
>        attributes = cp_parser_attributes_opt (parser);
> -      gcc_checking_assert (attributes);
>        cp_token *t1 = cp_lexer_peek_token (parser->lexer);
>        cp_token *t2 = (t1->type == CPP_EOF
>               ? t1 : cp_lexer_peek_nth_token (parser->lexer, 2));

ack, I'll take care of it, let me take a look at what it was guarding.

Reply via email to