Summary: template overload resolution failure
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD

--- Comment #0 from 2012-01-24 19:49:57 PST ---
With DMD 2.058head:

auto foo(T1)(T1 x){}
auto foo(T1,T2)(T1 x,T2 y){}
void main(){foo!(ubyte)(0);}

Error: template does not match any function template declaration
Error: template cannot deduce template function from argument types
Error: template instance foo!(ubyte) errors instantiating template

The following works (showing that the first error message is nonsensical):

auto foo(T1)(T1 x){}
void main(){foo!(ubyte)(0);}

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

Reply via email to