[Bug c++/97871] [11 Regression] ICE in cp_parser_declaration, at cp/parser.c:13539
mpolacek at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Tue Nov 17 15:41:16 GMT 2020
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97871
Marek Polacek <mpolacek at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever confirmed|0 |1
CC| |iains at gcc dot gnu.org,
| |mpolacek at gcc dot gnu.org
Last reconfirmed| |2020-11-17
--- Comment #1 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
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));
More information about the Gcc-bugs
mailing list