Skip to content
Better HN
Top
New
Best
Ask
Show
Jobs
Search
⌘K
undefined | Better HN
0 points
MobiusHorizons
9mo ago
0 comments
Share
UB is not undocumented. It is documented to not be defined. In fact any given hardware reacts deterministically in the majority of UB cases, but compilers are allowed to assume UB was not possible for the purposes of optimization.
0 comments
default
newest
oldest
Dylan16807
9mo ago
The trigger for UB is documented, the result is not documented.
And despite the triggers being documented, they're very very hard to avoid completely.
j
/
k
navigate · click thread line to collapse