[Bug c++/17843] Warning not given.

bangerth at dealii dot org gcc-bugzilla@gcc.gnu.org
Tue Oct 5 17:31:00 GMT 2004


------- 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



More information about the Gcc-bugs mailing list