https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120471
Xi Ruoyao <xry111 at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|WAITING |NEW --- Comment #5 from Xi Ruoyao <xry111 at gcc dot gnu.org> --- (In reply to xiaohuba2021 from comment #4) > (In reply to Xi Ruoyao from comment #2) > > I cannot reproduce it locally, nor on godbolt: > > https://godbolt.org/z/rxf8Es1n5. > > switch the language to c++ successfully reproduce it: > https://godbolt.org/z/z6WhKKa74 Indeed. And it only reproduces with GCC 15, and does not reproduce with 14 or trunk. Maybe a dup of some recently fixed bug.