(Set version to 1.012: there's no 1.013 yet.) void main() { const int[2] foo; int[foo.length] bar; } Compiling the above results in the error "Error: no property 'length' for type 'int'". No module or line information, hence the "diagnostic" keyword on this bug. Move the code outside of function scope and/or remove the const from "foo" and the code compiles. Also, replacing foo.length with mixin("foo.length") works, which is odd.
Added to DStress as http://dstress.kuehne.cn/run/l/length_12_A.d http://dstress.kuehne.cn/run/l/length_12_B.d http://dstress.kuehne.cn/run/l/length_12_C.d
The line number bug was fixed between 1.030 and 1.036. Removing 'diagnostic' from the warning. Works on D2. (Actually, I think the bug is that D1 allows you create a const array with no initializer).
Closing because D1 is no longer supported.