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/12150] warning in dead code (comparison is always false) [regression]


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.


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