PR c++/92450 - ICE with invalid nested name specifier.
authorMarek Polacek <polacek@redhat.com>
Thu, 21 Nov 2019 15:27:46 +0000 (15:27 +0000)
committerMarek Polacek <mpolacek@gcc.gnu.org>
Thu, 21 Nov 2019 15:27:46 +0000 (15:27 +0000)
commit523cfd52a29d496a5c0445e5307e9ffc05242b20
tree540b338e28f37bfa4b9113de385e44a6c364ff63
parent7c6f2fb9c7513d3487ab2d6d6edd235f152c0ef3
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.

* g++.dg/parse/crash71.C: New test.

From-SVN: r278570
gcc/cp/ChangeLog
gcc/cp/parser.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/parse/crash71.C [new file with mode: 0644]