[Bug c/79979] For loop fails to exit

2017-03-09 Thread jdowdells at hotmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79979 jdowdells at hotmail dot com changed: What|Removed |Added Status|RESOLVED|CLOSED --- Comment #5 from

[Bug c/79979] For loop fails to exit

2017-03-09 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79979 --- Comment #4 from Jakub Jelinek --- Please read e.g. http://blog.regehr.org/archives/213 or other articles about UB and just fix your code.

[Bug c/79979] For loop fails to exit

2017-03-09 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79979 Jakub Jelinek changed: What|Removed |Added CC||jakub at gcc dot gnu.org --- Comment #3

[Bug c/79979] For loop fails to exit

2017-03-09 Thread jdowdells at hotmail dot com
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 conceivab

[Bug c/79979] For loop fails to exit

2017-03-09 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79979 Marek Polacek changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED CC|