https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96057
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> --- There was another report about static inline where this happens too. The same reasoning applies here. The function is unused and there for there is no undefined runtime behavior can happen.