[Bug rtl-optimization/17544] [4.0 Regression] incorrect -Wunreachable-code warning for reachable code following a do statement
giovannibajo at libero dot it
gcc-bugzilla@gcc.gnu.org
Mon Oct 4 12:29:00 GMT 2004
------- Additional Comments From giovannibajo at libero dot it 2004-10-04 12:28 -------
Confirmed, a regression on mainline. Simplified testcase:
----------------------------
int main (void) // 1
{ // 2
return 0; // 3
} // 4
----------------------------
17544.cc: In function `int main()':
17544.cc:4: warning: will never be executed
The warning is probably on the implicit return which is put at the end of the
definition of main by the compiler (main is allowed to not have an explicit
return statement).
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed| |1
Known to fail| |4.0.0
Known to work| |3.4.2
Last reconfirmed|0000-00-00 00:00:00 |2004-10-04 12:29:00
date| |
Summary|incorrect -Wunreachable-code|[4.0 Regression] incorrect -
|warning for reachable code |Wunreachable-code warning
|following a do statement |for reachable code following
| |a do statement
Target Milestone|--- |4.0.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17544
More information about the Gcc-bugs
mailing list