[Bug c++/72786] Odd spelling suggestion with later defined macro: Suggestion is identical to unknown identifier

2017-11-20 Thread dmalcolm at gcc dot gnu.org
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

[Bug c++/72786] Odd spelling suggestion with later defined macro: Suggestion is identical to unknown identifier

2016-12-12 Thread marxin at gcc dot gnu.org
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

[Bug c++/72786] Odd spelling suggestion with later defined macro: Suggestion is identical to unknown identifier

2016-11-29 Thread dmalcolm at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=72786 David Malcolm changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---

[Bug c++/72786] Odd spelling suggestion with later defined macro: Suggestion is identical to unknown identifier

2016-11-29 Thread dmalcolm at gcc dot gnu.org
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

[Bug c++/72786] Odd spelling suggestion with later defined macro: Suggestion is identical to unknown identifier

2016-08-03 Thread dmalcolm at gcc dot gnu.org
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