https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62142
--- Comment #3 from Ondřej Čertík <ondrej.certik at gmail dot com> --- Thanks Steve for the quick reply! I tried "-fno-realloc-lhs" and it fixes the problem for us (we always allocate arrays explicitly).