re PR c++/89390 (ICE in get_string, at spellcheck-tree.h:46)
authorJakub Jelinek <jakub@redhat.com>
Tue, 19 Feb 2019 08:38:54 +0000 (09:38 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Tue, 19 Feb 2019 08:38:54 +0000 (09:38 +0100)
commit883c07964f42c00b66dbb81d2ec742e4ee23a3c2
tree83a9c174f84dc012d8ee59ca0f67eb24c90b8bd4
parent102a4fe17e1b54c2de0bb7b116198f6eb1d14e2f
re PR c++/89390 (ICE in get_string, at spellcheck-tree.h:46)

PR c++/89390
* error.c (qualified_name_lookup_error): Only call
suggest_alternative_in_scoped_enum if name is IDENTIFIER_NODE.

* g++.dg/diagnostic/pr89390.C: New test.

From-SVN: r269007
gcc/cp/ChangeLog
gcc/cp/error.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/diagnostic/pr89390.C [new file with mode: 0644]