[Issue 4481] ICE(glue.c, !vthis->csym) or compiles, depending on the import statements order

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun Feb 17 20:03:43 PST 2013


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



--- Comment #8 from kekeniro2 at yahoo.co.jp 2013-02-17 20:03:35 PST ---
2.062head has a regression caused by this problem, probably.
Reduced test case is here.

Command:
 dmd.exe bug2062a.d bug2062b.d

bug2062a.d ----------------------------
void call(alias pred, R)(R haystack) {
    foreach (e; haystack) {
        pred(e);
        break;
    }
}

bug2062b.d ----------------------------
import bug2062a;

class Foo {
    void member() {
        int[] r;
        int local;
        call!(p=>local)(r); // ( (int p)=>local ) works.
    }
}

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