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

           Summary: Order dependent IFTI failure
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Keywords: rejects-valid
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: [email protected]
        ReportedBy: [email protected]


--- Comment #0 from Kenji Hara <[email protected]> 2013-08-12 13:17:13 PDT ---
With both version = ng and ok, the code should be compiled successfully.

version (ng)
{
    void foo(R1, R2)(R1 r1, R2 r2) {}
    template foo(alias pred) { void foo(R1, R2)(R1 r1, R2 r2) {} }
}
version (ok)
{
    template foo(alias pred) { void foo(R1, R2)(R1 r1, R2 r2) {} }
    void foo(R1, R2)(R1 r1, R2 r2) {}
}
void main()
{
    foo(1, 2);
    foo!(a => a)(1, 2);
}

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

Reply via email to