www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 6140] New: Wrong ambiguity error with overloading

reply d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=6140

           Summary: Wrong ambiguity error with overloading
           Product: D
           Version: D2
          Platform: Other
        OS/Version: Mac OS X
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody puremagic.com
        ReportedBy: andrei metalanguage.com



21:39:34 PDT ---
void fun(T...)() {}
void fun(T...)(uint) {}

void main()
{
    fun!(main)(3u);
    fun!(main)(3);
}

This test fails in two different ways for the two lines of main. It shouldn't
fail at all.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Jun 09 2011
parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=6140


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

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |andrej.mitrovich gmail.com



08:13:59 PST ---
The first one doesn't fail, but the second one does (2.061).

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