https://gcc.gnu.org/bugzilla/show_bug.cgi?id=72786
--- Comment #5 from David Malcolm ---
Author: dmalcolm
Date: Tue Nov 21 00:40:53 2017
New Revision: 254978
URL: https://gcc.gnu.org/viewcvs?rev=254978=gcc=rev
Log:
C++: provide macro used-before-defined hint (PR c++/72786)
This patch uses the
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=72786
Martin Liška changed:
What|Removed |Added
CC||safinaskar at mail dot ru
--- Comment #4
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=72786
David Malcolm changed:
What|Removed |Added
Status|UNCONFIRMED |RESOLVED
Resolution|---
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=72786
--- Comment #2 from David Malcolm ---
Author: dmalcolm
Date: Tue Nov 29 16:25:01 2016
New Revision: 242965
URL: https://gcc.gnu.org/viewcvs?rev=242965=gcc=rev
Log:
spellcheck bugfixes: don't offer the goal string as a suggestion
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=72786
--- Comment #1 from David Malcolm ---
Thanks for filing this.
A two-liner fix for this would be to detect in
best_match::get_best_meaningful_candidate
if m_best_distance is 0, and if so return NULL, i.e. to not give a suggestion
if