Fix ICE with spelling hints within explicit namespace aliases (PR c++/79298)
authorDavid Malcolm <dmalcolm@redhat.com>
Tue, 31 Jan 2017 21:30:42 +0000 (21:30 +0000)
committerDavid Malcolm <dmalcolm@gcc.gnu.org>
Tue, 31 Jan 2017 21:30:42 +0000 (21:30 +0000)
commitfcb2cdfcfecc800d537fffa13dad17e4a3a34ae2
tree7f5c133ae0da42f91989beacdd969964f5e9c73f
parent7cfa044d991a2622ca82c92b042ca06824994acd
Fix ICE with spelling hints within explicit namespace aliases (PR c++/79298)

gcc/cp/ChangeLog:
PR c++/79298
* name-lookup.c (suggest_alternative_in_explicit_scope): Resolve
any namespace aliases.

gcc/testsuite/ChangeLog:
PR c++/79298
* g++.dg/spellcheck-pr79298.C: New test case.

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