On Thursday, 31 July 2014 at 18:51:09 UTC, Sean Kelly wrote: > This looks like an optimizer bug. Do you see the same result > with -release set vs. not, etc? I get it regardless of -release or -O. Replacing the arr declaration with T[sz] arr; fixes the problem.