http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56579
dacrick at gmail dot com changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |dacrick at gmail dot com --- Comment #1 from dacrick at gmail dot com 2013-03-09 16:12:34 UTC --- Something in the back of my mind has since reminded me of -fno-aggressive-loop-optimizations, and compiling at (e.g.) -O3 using -fno-aggressive-loop-optimizations no longer segfaults and produces the expected output.