--- Comment #2 from tomfelker at gmail dot com 2006-02-19 02:20 ---
OK, -fwrapv fixes it. But what if I do this, shouldn't it work as I expect?
(It doesn't without -fwrapv.) Also, what is the safe way to do what I want?
int min = INT_MAX, i;
for(i = 1; i > 0; ++i)
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: tomfelker at gmail dot com
GCC build triplet: 4.1.0-beta20060210
GCC host triplet: x86_64-pc-linux-gnu
GCC target triplet: x86_64-pc-linux-gnu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26358