diff options
author | David Malcolm <dmalcolm@redhat.com> | 2017-04-25 13:34:50 +0000 |
---|---|---|
committer | David Malcolm <dmalcolm@gcc.gnu.org> | 2017-04-25 13:34:50 +0000 |
commit | 7d5dbb22ec8e0c1f104539d3fdf2afc5174a5b45 (patch) | |
tree | cb97cfa4afc5343f61e406a573fd5fe602802a4e /gcc/ada/sinput-l.adb | |
parent | 0f168ccca1bb7a72e5456f9a6ff82a256e774073 (diff) | |
download | gcc-7d5dbb22ec8e0c1f104539d3fdf2afc5174a5b45.zip gcc-7d5dbb22ec8e0c1f104539d3fdf2afc5174a5b45.tar.gz gcc-7d5dbb22ec8e0c1f104539d3fdf2afc5174a5b45.tar.bz2 |
Fix spelling suggestions for reserved words (PR c++/80177)
gcc/cp/ChangeLog:
PR c++/80177
* name-lookup.c (suggest_alternative_in_explicit_scope): Convert
candidate type of bm from tree to const char *.
(consider_binding_level): Likewise.
(lookup_name_fuzzy): Likewise, using this to merge the best
result from the preprocessor into bm, rather than immediately
returning, so that better matches from reserved words can "win".
Guard the rejection of keywords that don't start decl-specifiers
so it only happens for FUZZY_LOOKUP_TYPENAME.
gcc/testsuite/ChangeLog:
PR c++/80177
* g++.dg/spellcheck-pr80177.C: New test case.
From-SVN: r247233
Diffstat (limited to 'gcc/ada/sinput-l.adb')
0 files changed, 0 insertions, 0 deletions