www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 2329] New: Misleading error message in overload resolution


           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 digitalmars.com
        ReportedBy: andrei 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.

Sep 02 2008