https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82967

            Bug ID: 82967
           Summary: "did you mean" suggestions are way too suggestive
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: samuel.thiba...@ens-lyon.org
  Target Milestone: ---

Hello,

The new suggestions brought by recent gcc are nice to catch up mere typoes.
They are however quite often misleading, I could for instance see

'PATH_MAX' undeclared (first use in this function); did you mean 'INT8_MAX'?
implicit declaration of function ‘time’; did you mean ‘nice’?
implicit declaration of function ‘bar’; did you mean ‘carg’?

programming beginners will start writing all kinds of crazy code due to this:
"the compiler told me to do it"...

Changing half of the letters of a word, or 3 or more letters, looks too
suggestive to me, I'd say it should be reduced to at most 2 letters, and less
than a quarter or a third of the word.

Samuel

Reply via email to