The following code, reduced by dustmite, causes an out of memory error in dmd:
struct A {
}
void get(T0 = T1.Req, Params...)(Params , T1) {
}
void main() {
auto xxx = get!A;
}
Output from dmd master (Jun 25 2013, 9fad79d33406c82cbdec62ac3e6e5ad2e29db4e4) is:
test.d(7): Error: undefined identifier T1, did you mean alias T0?
Error: out of memory
In my original code, I only get the "out of memory" error. The test above gives the following DMD error on v2.060, v2.062, e.g. no "out of memory":
test.d(7): Error: undefined identifier T1, did you mean alias T0?
test.d(11): Error: template instance test.get!(A) error instantiating
v2.063.2 gives simply:
Error: out of memory
Comment #1 by hsteoh — 2013-06-29T13:36:01Z
git bisect indicates that this problem was introduced by commit 4eece51e6368f58b67d3ac3d4f55826dd334a4e4 (apparently a fix for 5886)