I got the same ICE (dmd 2.048 on linux) and was able to reduce the problem to a small test case which does not involve any libraries like std.algorithm:
struct A( alias P ) {
static void a() {
void aa() { P(); }
}
}
template B( alias P ) {
void b() { A!P a; }
}
struct C( alias P ) {
void c() { B!P.b(); }
}
void main() {
void bar() {}
C!bar c;
}
Compiling this produces the same error:
Internal error: toir.c 190
Comment #2 by clugdbug — 2010-11-22T02:12:16Z
*** This issue has been marked as a duplicate of issue 4504 ***