Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Clarify what "undefined behavior" means in arithmetic.md (#2139)
Undefined behavior does not just mean that the behavior can be different on different platforms. It is much worse than that: the runtime behavior can be completely nonsensical since the whole program has undefined behavior. The compiler will optimizer as if there is no undefined behavior and will can lead to strange situations as the compiler concludes that things like `a > a + 1000` can never be reached if `a` is a signed 8-bit value (since reaching it would trigger undefined behavior).
- Loading branch information