public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug other/29694]  New: missed warnings about comparisons which are always true/false.
@ 2006-11-03 10:32 pluto at agmk dot net
  2006-11-03 10:39 ` [Bug other/29694] " pinskia at gcc dot gnu dot org
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: pluto at agmk dot net @ 2006-11-03 10:32 UTC (permalink / raw)
  To: gcc-bugs

unsigned foo( unsigned i )
{
        if ( i < 0 )
                i++;
        if ( i >= 0 )
                i++;
        return i;
}

g++ 412svn/420svn with `-O2 -Wall' reports no errors.


-- 
           Summary: missed warnings about comparisons which are always
                    true/false.
           Product: gcc
           Version: 4.2.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: other
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: pluto at agmk dot net
GCC target triplet: ix86-linux


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


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

end of thread, other threads:[~2007-05-20 20:33 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-11-03 10:32 [Bug other/29694] New: missed warnings about comparisons which are always true/false pluto at agmk dot net
2006-11-03 10:39 ` [Bug other/29694] " pinskia at gcc dot gnu dot org
2006-11-03 10:44 ` pluto at agmk dot net
2007-01-09 15:22 ` manu at gcc dot gnu dot org
2007-01-09 18:41 ` gdr at integrable-solutions dot net
2007-01-09 20:29 ` manu at gcc dot gnu dot org
2007-01-20 16:30 ` manu at gcc dot gnu dot org
2007-01-23 20:15 ` pluto at agmk dot net
2007-05-20 20:33 ` manu at gcc dot gnu dot 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).