https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105618
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> --- If b was not static and this was not main, there could be undefined behavior. Gcc does not take into account the function being main though.