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
