https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119322 --- Comment #2 from Egor Pugin <egor.pugin at gmail dot com> --- Tried this without -fno-strict-aliasing I suspect it was something on my side. With -fno-strict-aliasing answer is 0.