diff options
author | Jakub Jelinek <jakub@redhat.com> | 2022-03-08 21:41:21 +0100 |
---|---|---|
committer | Jakub Jelinek <jakub@redhat.com> | 2022-03-08 21:41:21 +0100 |
commit | e480c3c06d20874fd7504bfdcca0b829f8000389 (patch) | |
tree | 9de43b7c278f7c19d2b293d5a53e02e877d9012b /gcc/fortran/frontend-passes.cc | |
parent | 768956c0d115766fe7e1168d420310182ae48d9f (diff) | |
download | gcc-e480c3c06d20874fd7504bfdcca0b829f8000389.zip gcc-e480c3c06d20874fd7504bfdcca0b829f8000389.tar.gz gcc-e480c3c06d20874fd7504bfdcca0b829f8000389.tar.bz2 |
c++: Don't suggest cdtor or conversion op identifiers in spelling hints [PR104806]
On the following testcase, we emit "did you mean '__dt '?" in the error
message. "__dt " shows there because it is dtor_identifier, but we
shouldn't suggest those to the user, they are purely internal and can't
be really typed by the user because of the final space in it.
2022-03-08 Jakub Jelinek <jakub@redhat.com>
PR c++/104806
* search.cc (lookup_field_fuzzy_info::fuzzy_lookup_field): Ignore
identifiers with space at the end.
* g++.dg/spellcheck-pr104806.C: New test.
Diffstat (limited to 'gcc/fortran/frontend-passes.cc')
0 files changed, 0 insertions, 0 deletions