logoalt Hacker News

mitxelatoday at 12:36 AM1 replyview on HN

The original UB was to allow the compiler to merge two loops without proving termination.


Replies

CamperBob2today at 4:44 AM

What difference does it make? If the loop doesn't terminate, it doesn't terminate, which is almost always a bug, except when it's not. If it does terminate, then great, it terminates.

Merging a buggy loop with another loop creates... a buggy loop.

show 1 reply