https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110738
Xi Ruoyao <xry111 at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |xry111 at gcc dot gnu.org --- Comment #4 from Xi Ruoyao <xry111 at gcc dot gnu.org> --- (In reply to Shaohua Li from comment #3) > Would this test case be interesting? If no, I won't report other similar > issues. > > https://godbolt.org/z/9xr1rv37s But it works at -O2. So I suppose this is just an effect of disabling some optimizations in -O1, and I guess the change is likely deliberate.