https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121173
--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> --- I am still trying to figure out how to reproduce this since using he trunk on x86_64-linux-gnu does not produce a warning and using GCC 10 from ubuntu 2204 also does not produce a warning.