4 ms·
Ah. That sounds like the argument made in "One Word Broke C" [0, 1]. I can't say I agree with that argument, though. As pointed out here and in the HN comments
by aw1621107 5y ago
Ah. That sounds like the argument made in "One Word Broke C" [0, 1]. I can't say I agree with that argument, though.
As pointed out here and in the HN comments on that article, the phrase "ignoring the situation completely with unpredictable results" is present in both those standards, and is arguably what allows aggressive compiler optimizations to be made, since to a first approximation those optimizations rely on ignoring control flow that encounters UB.
[0]: https://news.quelsolaar.com/2020/03/16/how-one-word-broke-c/ https://news.quelsolaar.com/2020/03/16/how-one-word-broke-c/
[1]: https://news.ycombinator.com/item?id=22589657 https://news.ycombinator.com/item?id=22589657