http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50188
--- Comment #4 from Michael Zolotukhin <michael.v.zolotukhin at gmail dot com> 2011-08-25 20:21:10 UTC --- If I understand standard correctly, in this case behavior isn't undefined. Am I right? If so, then if behavior of optimized code (loop is infinite) is correct, behavior of not optimized code isn't.