[Bug c/113011] main declared with enumerated type is not accepted
pinskia at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Thu Dec 14 02:04:26 GMT 2023
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.
More information about the Gcc-bugs
mailing list