dot org
ReportedBy: tuttle at sandbox dot cz
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35188
--- Comment #2 from tuttle at sandbox dot cz 2008-02-13 21:41 ---
(In reply to comment #1)
> -Wunreachable-code should warn already.
> -- Pinski
I've tried -Wunreachable-code before submitting this enhancement request.
gcc 4.1.3 in Ubuntu GG does not warn.
--
http://
--- Comment #5 from tuttle at sandbox dot cz 2008-02-16 14:12 ---
I think we could generalize a bit: This in fact is not bound to if-statement or
code reachability.
Tried the following with snapshot gcc-4.3-20080215 -Wextra -Wall
-Wunreachable-code.
#include
int main()
{
int var1
--- Comment #7 from tuttle at sandbox dot cz 2008-02-16 18:09 ---
That's great, even my older gcc 4.1.3 warns for every if-body with -O1
-Wunreachable code. Shame on me I did not came with -O1 myself, sorry.
Anyway my first code line
int var1 = (1 && 0);
is not about