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/17946] wanted: warning for "a && MASK" when "a & MASK" was probably intended



------- Comment #15 from pinskia at gcc dot gnu dot org  2007-03-10 02:30 -------
on spu-elf, I get:

cc1plus: error: unrecognized command line option "-Winvariant-expr"^M

FAIL: g++.dg/warn/Wlogical-op-1.C  (test for warnings, line 31) FAIL:
g++.dg/warn/Wlogical-op-1.C  (test for warnings, line 33) PASS:
g++.dg/warn/Wlogical-op-1.C  (test for bogus messages, line 36) PASS:
g++.dg/warn/Wlogical-op-1.C  (test for bogus messages, line 39) PASS:
g++.dg/warn/Wlogical-op-1.C  (test for bogus messages, line 40) PASS:
g++.dg/warn/Wlogical-op-1.C  (test for bogus messages, line 42)
PASS: g++.dg/warn/Wlogical-op-1.C  (test for bogus messages, line 44)
FAIL: g++.dg/warn/Wlogical-op-1.C  (test for warnings, line 77) FAIL:
g++.dg/warn/Wlogical-op-1.C  (test for warnings, line 79)
PASS: g++.dg/warn/Wlogical-op-1.C  (test for bogus messages, line 82)
PASS: g++.dg/warn/Wlogical-op-1.C  (test for bogus messages, line 85) PASS:
g++.dg/warn/Wlogical-op-1.C  (test for bogus messages, line 86) PASS:
g++.dg/warn/Wlogical-op-1.C  (test for bogus messages, line 88) PASS:
g++.dg/warn/Wlogical-op-1.C  (test for bogus messages, line 90) FAIL:
g++.dg/warn/Wlogical-op-1.C (test for excess errors) 



Did you forget to update the testcase before committing?


-- 


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


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