https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118983
--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Note also GCC 10 is no longer supported upstream. So try GCC 12+ and see if it fails there. Plus you didn't give a testcase. Please read https://gcc.gnu.org/bugs/#need next time. Also the message from Ubuntu's compiler says: See <file:///usr/share/doc/gcc-10/README.Bugs> for instructions.