logoalt Hacker News

mitxelatoday at 12:32 AM1 replyview on HN

The standards intended interpretation of UB was always intended to be something like "implementation defined, no documentation required" to allow for implementation weirdness, even unpredictable ones. It was compiler authors who decided do abuse this allowance to do really unintuitive things instead of weird platform weirdness.


Replies

IcyWindowstoday at 2:16 AM

100% There are implementations that have sane behavior for "UB" instead of making it an excuse to misbehave.

The ISO standard is not the same as a language from a single vendor.

show 1 reply