This code:
----
struct A {
template B(T) {
struct C {
void test() {
}
}
alias B = C;
}
}
void main() {
A a;
a.B!int.test();
}
----
Gives:
a.(C)
[/d821/f626.d(15)] dotexp Internal error: e2ir.c 780
Comment #1 by bearophile_hugs — 2013-11-27T12:56:22Z
Using the latest dmd 2.065alpha on Windows 32 bit it doesn't crash to me, and gives:
temp.d(15): Error: need 'this' for 'test' of type 'pure nothrow @safe void()'
Comment #2 by k.hara.pg — 2013-11-27T20:04:21Z
The root cause is a dup of bug7645, and it was recently fixed in git head.
*** This issue has been marked as a duplicate of issue 7645 ***