https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121070
--- Comment #4 from qinzhao at gcc dot gnu.org --- (In reply to Andrew Pinski from comment #2) > Or with -fstrict-flex-arrays . Ah, you are right, I forgot about this.. adding -fstrict-flex-arrays fixed this issue.