This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]