https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118136
Richard Earnshaw <rearnsha at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|INVALID |--- Last reconfirmed| |2024-12-20 Ever confirmed|0 |1 Status|RESOLVED |NEW --- Comment #11 from Richard Earnshaw <rearnsha at gcc dot gnu.org> --- Appealing to the C standard for claiming the startup code is not conforming is a straw-man. The standard does not specify how startup code works: it's an implementation detail. Nevertheless, the compiler has to support building such code somehow, which means it needs to support being able to call both forms of main specified by the standard. So this is not about what the standard says about functions that call main but about how /GCC/ can support building startup code.