https://issues.dlang.org/show_bug.cgi?id=12642 --- Comment #1 from Kenji Hara <k.hara.pg at gmail.com> --- If you remove @nogc annotation, all array literals will be allocated on stack. So this is pure front-end issue, and may be fixed easily. --