This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/64609] No -Wbool-compare warning on "(a = 0 && 0) <= 4" and "0 > a < 0"
- From: "chengniansun at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 21 Jan 2015 08:10:03 +0000
- Subject: [Bug c/64609] No -Wbool-compare warning on "(a = 0 && 0) <= 4" and "0 > a < 0"
- Auto-submitted: auto-generated
- References: <bug-64609-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64609
Chengnian Sun <chengniansun at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Summary|No -Wbool-compare warning |No -Wbool-compare warning
|on "(a = 0 && 0) <= 4" |on "(a = 0 && 0) <= 4" and
| |"0 > a < 0"
--- Comment #2 from Chengnian Sun <chengniansun at gmail dot com> ---
Another test case.
$: cat s.c
int a;
void f() {
(0 > a < 0);
}
$:
$: gcc-trunk -Wbool-compare -Wtype-limits -c s.c
$: