https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109561
--- Comment #7 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Note the trunk is able to optimize this decently now after the fix for PR 121740 . So it is just the a 13/14 regression about the diagnostic now.