http://d.puremagic.com/issues/show_bug.cgi?id=2972

           Summary: Can't overload non-templated function against template
           Product: D
           Version: 2.030
          Platform: PC
        OS/Version: Windows
            Status: NEW
          Keywords: rejects-valid
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: bugzi...@digitalmars.com
        ReportedBy: dsim...@yahoo.com


DMD doesn't seem to allow overloading of non-templated functions against
templated functions even when they have different arity and therefore no
ambiguity exits.  Test case:

void foo(const char[] stuff) { }

void foo(T)(const char[] stuff, const T[] moreStuff){}

C:\home\dsimcha\bin\test.d(3): Error: template test.foo(T) conflicts with
function test.foo at C:\home\dsimcha\bin\test.d(1)

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

Reply via email to