Bug 2329 – Misleading error message in overload resolution
Status
RESOLVED
Resolution
WORKSFORME
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2008-09-02T18:40:00Z
Last change time
2015-06-09T05:15:12Z
Keywords
diagnostic
Assigned to
nobody
Creator
andrei
Comments
Comment #0 by andrei — 2008-09-02T18:40:09Z
import std.date, std.conv;
void main()
{
string s = "123";
auto a = parse!(uint)(s);
}
Compilation fails with:
/path/to/phobos/std/conv.d(677): template std.conv.parse(Target) is not a function template
The error disappears when std.date leaves the picture. The fact that the call is in error may be a distinct problem with overload resolution. Anyhow, I'm posting this because the error message gives no clue about the conflicting name introduced by std.date.
Comment #1 by mike — 2011-06-18T03:45:19Z
*** Issue 5721 has been marked as a duplicate of this issue. ***
Comment #2 by andrej.mitrovich — 2013-01-20T12:17:39Z
This sample is outdated, and the one in dup Issue 5721 doesn't have the problem. Either it's a fixed issue or we need a new test-case.
Comment #3 by andrej.mitrovich — 2014-04-28T11:48:50Z