------- Comment #10 from ian at airs dot com 2008-01-21 20:40 ------- This test case will give a warning with mainline with -Wstrict-overflow (aka -Wstrict-overflow=2) but not with -Wall (which implies -Wstrict-overflow=1).
void Alpha(); void Beta() { int i; for (i = 1; i > 0; i += i) Alpha(); } -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32102