http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59933
Ian Hamilton <ian at g0tcd dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |ian at g0tcd dot com --- Comment #2 from Ian Hamilton <ian at g0tcd dot com> --- I found a similar bug in 4.8.1. See bug report http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59982 You could try adding the -fno-aggressive-loop-optimizations flag and see if that fixes your problem with assert() enabled.