[Issue 11098] New: template instance x cannot use local y as parameter to non-global template z

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun Sep 22 07:04:25 PDT 2013


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

           Summary: template instance x cannot use local y as parameter to
                    non-global template z
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody at puremagic.com
        ReportedBy: simendsjo at gmail.com


--- Comment #0 from simendsjo <simendsjo at gmail.com> 2013-09-22 07:04:24 PDT ---
Using dmd head.

template A(T...) {
    template B(alias T) { }
}

void main() {
    void fv() {}
    alias A!(fv) F;
    F.B!F;
}

t.d(8): Error: template instance B!(A!(fv)) cannot use local 
'A!(fv)' as parameter to non-global template B(alias T)

-- 
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