+2019-11-21 Marek Polacek <polacek@redhat.com>
+
+ PR c++/92450 - ICE with invalid nested name specifier.
+ * parser.c (cp_parser_member_declaration): Don't attempt to print
+ erroneous bit-field diagnostic if grokdeclarator returns
+ error_mark_node.
+
2019-11-21 Jakub Jelinek <jakub@redhat.com>
Jason Merrill <jason@redhat.com>
tree d = grokdeclarator (declarator, &decl_specifiers,
BITFIELD, /*initialized=*/false,
&attributes);
- error_at (DECL_SOURCE_LOCATION (d),
- "bit-field %qD has non-integral type %qT",
- d, TREE_TYPE (d));
+ if (!error_operand_p (d))
+ error_at (DECL_SOURCE_LOCATION (d),
+ "bit-field %qD has non-integral type %qT",
+ d, TREE_TYPE (d));
cp_parser_skip_to_end_of_statement (parser);
/* Avoid "extra ;" pedwarns. */
if (cp_lexer_next_token_is (parser->lexer,
+2019-11-21 Marek Polacek <polacek@redhat.com>
+
+ PR c++/92450 - ICE with invalid nested name specifier.
+ * g++.dg/parse/crash71.C: New test.
+
2019-11-21 Wilco Dijkstra <wdijkstr@arm.com>
* gfortran.dg/global_vars_f90_init_driver.c: Add missing extern.