public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/49706] New: No warning for (!x > 1) which is always false
@ 2011-07-11 22:34 pinskia at gcc dot gnu.org
  2011-07-12  8:53 ` [Bug c/49706] " rguenth at gcc dot gnu.org
                   ` (9 more replies)
  0 siblings, 10 replies; 11+ messages in thread
From: pinskia at gcc dot gnu.org @ 2011-07-11 22:34 UTC (permalink / raw)
  To: gcc-bugs

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

           Summary: No warning for (!x > 1) which is always false
           Product: gcc
           Version: 4.7.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: pinskia@gcc.gnu.org


Found this while looking into PR49474:
/* { dg-options "-Wextra -Wall" } */
void warn (void);
int f(int a)
{
  if (!a > 1) /* { dg-warning "false" } */
    warn();
  return 0;
}


^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2022-01-09  0:47 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-07-11 22:34 [Bug c/49706] New: No warning for (!x > 1) which is always false pinskia at gcc dot gnu.org
2011-07-12  8:53 ` [Bug c/49706] " rguenth at gcc dot gnu.org
2011-07-12  9:28 ` jakub at gcc dot gnu.org
2014-06-01 18:31 ` pinskia at gcc dot gnu.org
2014-06-01 18:46 ` mpolacek at gcc dot gnu.org
2014-06-05  6:20 ` mpolacek at gcc dot gnu.org
2014-06-05  6:23 ` mpolacek at gcc dot gnu.org
2014-09-01  9:32 ` mpolacek at gcc dot gnu.org
2015-04-22 11:58 ` jakub at gcc dot gnu.org
2015-07-16  9:12 ` rguenth at gcc dot gnu.org
2022-01-09  0:47 ` pinskia at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).