Bug 9196 – Spellchecker suggestions hit private symbols (and cause bad diganostic)

Status
RESOLVED
Resolution
DUPLICATE
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2012-12-22T12:23:00Z
Last change time
2012-12-22T12:32:02Z
Keywords
diagnostic
Assigned to
nobody
Creator
dmitry.olsh

Comments

Comment #0 by dmitry.olsh — 2012-12-22T12:23:59Z
The following: import std.typetuple; void fn() { genericReplace(0, 0, 3); } Produces unexpected error message and features one without a line number: Error: module dignostic std.typetuple.GenericReplace(args...) if (args.length >= 2) is private dignostic.d(5): Error: undefined identifier genericReplace, did you mean template GenericReplace(args...) if (args.length >= 2)? It shouldn't suggest private symbols from external modules (and I'd argue they shouldn't be otherwise visible) nor print nonsense while trying to do it. Tested on latest DMD from github master.
Comment #1 by andrej.mitrovich — 2012-12-22T12:28:31Z
*** This issue has been marked as a duplicate of issue 5839 ***
Comment #2 by dmitry.olsh — 2012-12-22T12:30:07Z
Not a duplicate - the test case in 5839 indeed works for me.
Comment #3 by andrej.mitrovich — 2012-12-22T12:32:02Z
(In reply to comment #2) > Not a duplicate - the test case in 5839 indeed works for me. I've reopened the other issue, but you didn't give me enough time to do it. :) *** This issue has been marked as a duplicate of issue 5839 ***