This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/52003] warning about (un)existing return statement in the main function declared 'noreturn'
- From: "gnumaurorusso at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 27 Jan 2012 00:27:43 +0000
- Subject: [Bug c++/52003] warning about (un)existing return statement in the main function declared 'noreturn'
- Auto-submitted: auto-generated
- References: <bug-52003-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52003
--- Comment #4 from mauro <gnumaurorusso at gmail dot com> 2012-01-27 00:27:43 UTC ---
(In reply to comment #2)
> main has an implicit return 0 if it follows through to the end according to the
> C++ standard IIRC.
Ok, I thought it was something like that.
Thanks for answer.