https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104884
Jakub Jelinek <jakub at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jakub at gcc dot gnu.org --- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> --- It is dangerous to invoke undefined behavior. An optimizing compiler optimizes on the assumption that UB doesn't happen. Please read https://blog.regehr.org/archives/213