https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118916
--- Comment #4 from Andrew Pinski <pinskia at gcc dot gnu.org> --- (In reply to Tomas Chang from comment #2) > > My question is that the same code runs successfully if it is compiled with > GCC 12 using -O3 optimization. Because it just happened to work ...