https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119212
--- Comment #7 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Please submit a full bug report, with preprocessed source (by using -freport-bug). Please include the complete backtrace with any bug report. See <file:///usr/share/doc/gcc-12/README.Bugs> for instructions. So you didn't read the error message. This should be reported to Ubuntu first anyways.