[Bug c/79979] For loop fails to exit

jdowdells at hotmail dot com gcc-bugzilla@gcc.gnu.org
Thu Mar 9 16:04:00 GMT 2017


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79979

--- Comment #2 from jdowdells at hotmail dot com ---
Thanks for your quick reply.

However, this is not intuitive, the compiler should be "free to do anything" in
a sensible intuitive manner.

The for loop is well defined and there is no conceivable circumstance that
should allow it to loop forever.

The optimized/unoptimized code should work the same but it does not.

If you want to make the unoptimized code loop for ever I'll be more than happy

Thanks again.


More information about the Gcc-bugs mailing list