News for hackers. Stuff that matters.
Re:C++26: Trivial infinite loops are no longer undefined beh... by Panzerschrek on Friday September 18, 2026 @02:38PM (#49758404)
> the simplest infinite loop

An infinite loop which does nothing is practically useless. So, compilers optimize it out. That's the whole philosophy of modern compilers - to reduce execution time by preserving semantics. In case of an infinite loop elimination it's an optimization making code infinite times faster.

Re:C++26: Trivial infinite loops are no longer undefined beh... by chrystalkey on Saturday September 19, 2026 @09:16AM (#49766357)
But also very different. If code below this loop executes after elimination and wouldnt have before, that is a very significant change in semantics