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

           Summary: [ICE] Internal error: toir.c 178
           Product: D
           Version: D2
          Platform: x86_64
        OS/Version: Mac OS X
            Status: NEW
          Severity: critical
          Priority: P2
         Component: DMD
        AssignedTo: nob...@puremagic.com
        ReportedBy: necrom...@gmail.com


--- Comment #0 from Max Klyga <necrom...@gmail.com> 2012-07-29 05:16:53 PDT ---
DMD 2.059, OS X 10.6.8

Got a reduced test case for this:

template C() {
    alias void C;
}

class List(T, size_t N) {}

auto list(T...)() {
    return list_impl!(C!T);
}

List!(L, 0) list_impl(L)() {
    return null;
}

auto foldr(alias f, V, T, size_t N)(V, List!(T, N)) {}

auto map(alias f, T, size_t N)(List!(T, N)) {
    foldr!(a => f)(null, list);
}

void main() {
    auto l = list;
    map!(a => a)(l);
    map!(a => a)(l);
}

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

Reply via email to