Seems to happen whenever the length of text equals 1024 characters. If the limit is set a little higher, compilation fails before reaching the linker. ----------------- class A(char [] text) { static if (text.length<1023) { A!("b"~text) bar() { return null; } // recursive expansion } } void main() { A!("yyy") b; }
This was fixed between D1.041 and 1.045.