[Issue 10811] New: Order dependent IFTI failure

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Aug 12 13:17:15 PDT 2013


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: nobody at puremagic.com
        ReportedBy: k.hara.pg at gmail.com


--- Comment #0 from Kenji Hara <k.hara.pg at gmail.com> 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: -------


More information about the Digitalmars-d-bugs mailing list