https://issues.dlang.org/show_bug.cgi?id=16699
--- Comment #4 from hst...@quickfur.ath.cx --- Yet another data point: compiling with -O makes the problem go away(!). Somehow, I guess the optimizer must be working at a higher level of abstraction, and was able to deduce the correct semantics and enregister the static array, thus avoiding this particular codegen bug. --