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/64609] No -Wbool-compare warning on "(a = 0 && 0) <= 4" and "0 > a < 0"


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
$:


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