re PR c++/84537 (ICE in get_string, at spellcheck-tree.h)
authorMarek Polacek <polacek@redhat.com>
Mon, 26 Feb 2018 14:12:25 +0000 (14:12 +0000)
committerMarek Polacek <mpolacek@gcc.gnu.org>
Mon, 26 Feb 2018 14:12:25 +0000 (14:12 +0000)
commit7518398dce1d913e01899d3aa52caec50e6efb4f
treecfc620a06333d08deb813b0b790fba30887c1307
parentbdb8ec2d8dfbfef3efaf63a3b51faeb651d63514
re PR c++/84537 (ICE in get_string, at spellcheck-tree.h)

PR c++/84537
* name-lookup.c (suggest_alternative_in_explicit_scope): Return false
if name is error node.

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

From-SVN: r257988
gcc/cp/ChangeLog
gcc/cp/name-lookup.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/parse/error60.C [new file with mode: 0644]