Re:C++26: Trivial infinite loops are no longer undefined beh...
by rcxdude on Friday September 18, 2026 @12:17PM
(#49756581)
If it's truly unreachable then it's not likely to be a problem. If it is reachable and it's emerging from some macros and templates then I would be more inclined want a warning for it.
It wouldn't work when this kind of loop is generated by macros/templates in some unreachable case left after const folding.