(Not tested with the latest bug fixes, so this can be already fixed) int foo() { int[] a; a.length = 1; return 0; } enum int _ = foo(); void main() {} dmd 2.042 gives: test.d(3): Error: (a.length) = 1u cannot be evaluated at compile time
http://www.dsource.org/projects/dmd/changeset/507