www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 4676] New: Overload resolution rejects valid code when mixing variadics, non-variadics

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

           Summary: Overload resolution rejects valid code when mixing
                    variadics, non-variadics
           Product: D
           Version: D2
          Platform: Other
        OS/Version: Windows
            Status: NEW
          Keywords: rejects-valid
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody puremagic.com
        ReportedBy: dsimcha yahoo.com



Possibly related to 4652.

void doNothing(T...)(T args, string str) {}
void doNothing(T...)(T args) {}

void main() {
    doNothing(1, 2, 3);
}

test9.d(56): Error: template test9.doNothing(T...) doNothing(T...) matches more
than one template declaration, test9.d(52):doNothing(T...) and
test9.d(53):doNothing(T...)

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Aug 18 2010
next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=4676


Don <clugdbug yahoo.com.au> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |clugdbug yahoo.com.au




 Possibly related to 4652.
Indeed it is. My patch for 4652 (which isn't complete, there's still cases it fails for) fixes this one as well. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Aug 18 2010
prev sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=4676


Walter Bright <bugzilla digitalmars.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |bugzilla digitalmars.com
         Resolution|                            |FIXED



20:57:38 PDT ---
http://www.dsource.org/projects/dmd/changeset/635

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