https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119204
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Last reconfirmed| |2025-03-11 Ever confirmed|0 |1 --- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Confirmed. I suspect this is a regression but it is hard to tell since GCC 6 was the first version which had -fchecking. Note we should warn by default on the return type being mismatched but that is a different issue, I linked the other bug about that here.