https://issues.dlang.org/show_bug.cgi?id=13619 --- Comment #3 from thedeemon <dlang at thedeemon.com> --- Why do you think it's not valid? It does throw runtime error and capacity is wrong after setting the length. http://dpaste.dzfl.pl/b10858af2a56 --