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


--- Comment #0 from David Simcha <dsimcha yahoo.com> 2010-08-18 19:55:58 PDT ---
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


--- Comment #1 from Don <clugdbug yahoo.com.au> 2010-08-18 22:29:27 PDT ---
(In reply to comment #0)
 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


--- Comment #2 from Walter Bright <bugzilla digitalmars.com> 2010-08-27
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