[Bug c/30475] assert(int+100 > int) optimized away

felix-gcc at fefe dot de gcc-bugzilla@gcc.gnu.org
Mon Jan 15 19:46:00 GMT 2007



------- 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



More information about the Gcc-bugs mailing list