[Bug c/47670] Gcc 4.5.1 inconsistent optimisation of loop with mixed 32bit and 64bit arithmetic
argondsgn at gmail dot com
gcc-bugzilla@gcc.gnu.org
Wed Feb 9 22:00:00 GMT 2011
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47670
Peter de Rivaz <argondsgn at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |CLOSED
--- Comment #4 from Peter de Rivaz <argondsgn at gmail dot com> 2011-02-09 21:54:15 UTC ---
Thanks! (And sorry for the invalid report).
C99 specification 6.5 para 5 agrees that this is undefined behaviour.
Both suggestions solve the problem.
I've closed the bug now.
More information about the Gcc-bugs
mailing list