https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88501
David Malcolm <dmalcolm at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |ASSIGNED Last reconfirmed| |2018-12-14 Assignee|unassigned at gcc dot gnu.org |dmalcolm at gcc dot gnu.org Ever confirmed|0 |1 --- Comment #2 from David Malcolm <dmalcolm at gcc dot gnu.org> --- Confirmed. "string" vs "stting" has edit distance of 1, closer than "stdin". I think the issue here is that it's not considering names that would be found via using-directives. I have a work-in-progress patch to do so, which makes it successfully suggest "string" for this case.