Thread overview
[Issue 2329] New: Misleading error message in overload resolution
Sep 02, 2008
d-bugmail
Jun 18, 2011
Mike Wey
Jan 20, 2013
Andrej Mitrovic
September 02, 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@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.


-- 

June 18, 2011
http://d.puremagic.com/issues/show_bug.cgi?id=2329


Mike Wey <mike-wey@planet.nl> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jmdavisProg@gmx.com


--- Comment #1 from Mike Wey <mike-wey@planet.nl> 2011-06-18 03:45:19 PDT ---
*** Issue 5721 has been marked as a duplicate of this issue. ***

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
January 20, 2013
http://d.puremagic.com/issues/show_bug.cgi?id=2329


Andrej Mitrovic <andrej.mitrovich@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |andrej.mitrovich@gmail.com
           Platform|x86                         |All
         OS/Version|Linux                       |All


--- Comment #2 from Andrej Mitrovic <andrej.mitrovich@gmail.com> 2013-01-20 12:17:39 PST ---
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.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------