[Bug c/12150] warning in dead code (comparison is always false) [regression]

mattias at virtutech dot se gcc-bugzilla@gcc.gnu.org
Wed Sep 3 12:05:00 GMT 2003


PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12150



------- Additional Comments From mattias at virtutech dot se  2003-09-03 12:05 -------
I'm not sure I follow. Gcc 3.3 emits the warning whether the code is dead or not.
Perfectly legitimate code (written in good style) fails to compile with -Wall
-Werror in 3.3.1 while it did build in 3.2.2 --- isn't that a regression?

That it warns before GCC finds the warning before the code is known to be dead
is obvious, but that does not make it less of a bug, does it?

And about the duplicate: I was told in 4210 to open a new bug. I hope I didn't
misunderstand Wolfgang Bangerth's comment. Please bear with me if I'm confused.



More information about the Gcc-bugs mailing list