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

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 conflicts with
function at C:\home\dsimcha\bin\test.d(1)

Configure issuemail:
------- You are receiving this mail because: -------

Reply via email to