Hacker News new | ask | show | jobs
by sanxiyn 1306 days ago
It is the original reason. For example, register allocation is possible because stack smashing is UB.
1 comments

UB is also very much based around software incompatibilities though, not just the ability to optimise stuff.

But where IB can have useful definitions to document, UB was defined so because the behaviours were considered sufficiently divergent that allowing them was useless, and so it was much easier to just forbid them all.