https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114631
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution|--- |DUPLICATE --- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> --- So the C++ standard requires forward progress, otherwise it is undefined behavior (except if the condition is a constant expression which evaluates to true [See https://wg21.link/P2809R3]) . *** This bug has been marked as a duplicate of bug 93041 ***