This code used to compile fine with DMD 2.058 but is broken in the git version of DMD: struct A(T) { enum A!(T) test = A!(T)(); static if(true) { pragma(msg, "Not printed..."); // Not printed enum A!(T) blah = A!(T)(); } } void main() { auto a = A!(char).blah; // Error: no property 'blah' for type 'A!(char)' }
Regression confirmed on Linux 32-bit and 64-bit
The root cause is same as bug 7859, and it is already fixed. Then, the sample code compiles as expected in git head (d16cfe504). *** This issue has been marked as a duplicate of issue 7859 ***