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

--- Comment #4 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
(In reply to Ganton from comment #3)
> When that page (https://bugreports.qt.io/browse/QTBUG-33026) was written,
> the behavior of GCC was not like the described in this bug report (because
> the `for (doub = [...]` infinite loop was always taken into account). Do we
> have a regression? 🤔

No, the removal of loops which cannot prove being finite was added in GCC 10
(which was released in 2020) while the issue you pointed to was written up in
2013 which was GCC 4.8.x timeframe. In this case C++ standard has not changed,
just GCC started to optimize more based on what the standard says is allowed.

Reply via email to