[Issue 2329] New: Misleading error message in overload resolution
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Tue Sep 2 16:40:10 PDT 2008
http://d.puremagic.com/issues/show_bug.cgi?id=2329
Summary: Misleading error message in overload resolution
Product: D
Version: unspecified
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: DMD
AssignedTo: bugzilla at digitalmars.com
ReportedBy: andrei at metalanguage.com
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.
--
More information about the Digitalmars-d-bugs
mailing list