https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103780
--- Comment #4 from Jonathan Wakely <redi at gcc dot gnu.org> --- Yes that's the nature of undefined behaviour. It might have surprising results. Don't write code with undefined behaviour. The FIXED resolution means a bug in GCC was fixed, not that your problem has been solved. Please don't change it to FIXED, because nothing was changed in GCC, there was no bug to fix.