This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/52003] New: 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: Wed, 25 Jan 2012 23:26:41 +0000
- Subject: [Bug c++/52003] New: warning about (un)existing return statement in the main function declared 'noreturn'
- Auto-submitted: auto-generated
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52003
Bug #: 52003
Summary: warning about (un)existing return statement in the
main function declared 'noreturn'
Classification: Unclassified
Product: gcc
Version: 4.5.3
Status: UNCONFIRMED
Severity: minor
Priority: P3
Component: c++
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: gnumaurorusso@gmail.com
this function generates the warning :
function declared 'noreturn' has a 'return' statement
(at least it does with
-funsigned-char -funsigned-bitfields -O0 -fpack-struct -fshort-enums -g2 -Wall
options)
__attribute__((noreturn)) int main(void){
while(1);
}