https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120456
--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Options: `-Ofast -mavx2 -std=c++23`. Next time please attach the compilable testcase (or place it inline) and not just a code snip. Also add the options you are using.