------- Comment #1 from felix-gcc at fefe dot de 2007-01-15 19:46 ------- Mhh, if I change "int+100" to "(int)(int+100)", the assert still gets optimized away.
So it's not an integer promotion issue. Both sides are definitely int. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30475