This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/12150] warning in dead code (comparison is always false) [regression]
- From: "mattias at virtutech dot se" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 3 Sep 2003 12:05:42 -0000
- Subject: [Bug c/12150] warning in dead code (comparison is always false) [regression]
- References: <20030903084134.12150.mattias@virtutech.se>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
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.