https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113011
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |INVALID Status|UNCONFIRMED |RESOLVED --- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> --- C23 working draft has the same wording there too: The function called at program startup is named main.The implementation declares no prototype for this function. It shallbe defined with a return type of int Nowhere it says compatiable with int. just the return type of int.