https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119340
--- Comment #6 from Xi Ruoyao <xry111 at gcc dot gnu.org> --- Created attachment 60899 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=60899&action=edit my reduction My reduction is different: https://godbolt.org/z/GGc987xMY It obviously invokes undefined behavior several times though, so still not perfect.