[Bug c++/104806] Weird error message: did you mean "__dt "
cvs-commit at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Tue May 10 08:25:00 GMT 2022
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104806
--- Comment #6 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-10 branch has been updated by Jakub Jelinek
<jakub@gcc.gnu.org>:
https://gcc.gnu.org/g:da83eb387b2e0e4dfab73b735beac87ed269c866
commit r10-10692-gda83eb387b2e0e4dfab73b735beac87ed269c866
Author: Jakub Jelinek <jakub@redhat.com>
Date: Tue Mar 8 21:41:21 2022 +0100
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.c (lookup_field_fuzzy_info::fuzzy_lookup_field): Ignore
identifiers with space at the end.
* g++.dg/spellcheck-pr104806.C: New test.
(cherry picked from commit e480c3c06d20874fd7504bfdcca0b829f8000389)
More information about the Gcc-bugs
mailing list