[Issue 4129] ICE(glue.c, !vthis->csym): anonymous delegate literal in tuple

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Apr 9 00:37:13 PDT 2013


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



--- Comment #2 from Don <clugdbug at yahoo.com.au> 2013-04-09 00:37:12 PDT ---
To make this compile on D2, needs to be changed so that it's a delegate literal
again, instead of a function literal. Passes on D2, still ICE on D1.
Revised test case:
---
void mountainGoat(Callbacks ...)() {
    alias Callbacks[0] Cb;
    assert(Callbacks[0].ptr);
    assert(Cb.ptr);
}

void gazelle() {
    int m = 0;
    mountainGoat!( (int i) { int x = m + i; }   )();
}

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