[Bug c/86178] No warning when missing return from function main()

redi at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Sat Jun 16 19:59:00 GMT 2018


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86178

Jonathan Wakely <redi at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|---                         |INVALID

--- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> ---
You've set component=c but you're using g++ which means you're compiling C++
and so there's an implicit "return 0;" from main.


More information about the Gcc-bugs mailing list