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

           Summary: ICE(elfobj.c) delegate literal as alias template
                    parameter
           Product: D
           Version: D1 & D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nob...@puremagic.com
        ReportedBy: clugd...@yahoo.com.au


--- Comment #0 from Don <clugd...@yahoo.com.au> 2012-05-02 01:30:56 PDT ---
struct S {
 int delegate(int n) x;
 void foo(alias a)() { x = a; }
}

int delegate(int n) kkk = delegate(int n) { return n; };
void main()
{
    S s;
    s.foo!(kkk);
}

bug.d(17): Error: non-constant nested delegate literal expression __dgliteral1
Internal error: ../ztc/elfobj.c 455

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

Reply via email to