[Issue 8014] New: ICE(elfobj.c) delegate literal as alias template parameter

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed May 2 01:29:45 PDT 2012


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: nobody at puremagic.com
        ReportedBy: clugdbug at yahoo.com.au


--- Comment #0 from Don <clugdbug at 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: -------


More information about the Digitalmars-d-bugs mailing list