https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116418
--- Comment #6 from Andrew Pinski <pinskia at gcc dot gnu.org> --- (In reply to Andrew Pinski from comment #5) > (In reply to Jakub Jelinek from comment #4) > > Can't reproduce either, tried GCC 11, 12, 13, 14, trunk, -O1 -std=c++20 or > > -O1 -std=c++23. > > Oh it is with -g too. `-gno-statement-frontiers ` fixes the issue.