3 ms·
Yes, but there is more to it: The compiler may assume that UB will never happen intentionally and optimize out the branch containing UB.
by throwaway294566 4y ago
Yes, but there is more to it: The compiler may assume that UB will never happen intentionally and optimize out the branch containing UB.