2 ms·
A fun historical example: https://feross.org/gcc-ownage/ https://feross.org/gcc-ownage/ But yes, generally, UB manifests as "the compiler is allowed to assume
by steveklabnik 5y ago
A fun historical example: https://feross.org/gcc-ownage/ https://feross.org/gcc-ownage/
But yes, generally, UB manifests as "the compiler is allowed to assume this doesn't happen" and the bad stuff is a consequence of doing things following those assumptions, not the compiler going "oops well lol UB time to screw with this person."