https://issues.dlang.org/show_bug.cgi?id=14986 --- Comment #3 from Jacob Carlborg <doob at me.com> --- And here's a test case with valid code: struct Foo { int tsize; } void main() { Foo[] types; new void[types[0].tsize]; } --