This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/17843] Warning not given.
- From: "bangerth at dealii dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 5 Oct 2004 17:31:20 -0000
- Subject: [Bug c++/17843] Warning not given.
- References: <20041005144957.17843.dhruvbird@yahoo.com>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From bangerth at dealii dot org 2004-10-05 17:31 -------
Andrew, would you mind checking a little more carefully?
With mainline, I get this warning message:
g/x> /home/bangerth/bin/gcc-4*-pre/bin/c++ -c x.cc -Wunreachable-code
x.cc: In function `int main()':
x.cc:24: warning: will never be executed
This is indeed a progression, though line 24 is the closing brace of
main and it is therefore not at all clear what will never be executed.
So there are two bugs here: first that the warning message is on the
wrong line, second that the message doesn't state what exactly is never
executed (the message should probably read like "statement will never
be executed" or similar).
W.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |UNCONFIRMED
Resolution|INVALID |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17843