The, to me, obvious thing to do with code with undefined behaviour is to emit an error and refuse to compile it. Programmers should never rely on undefined behaviour.<p>Then again, I think languages shouldn&#x27;t have undefined behaviour and that programmers who use languages with undefined behaviour deserve what they get.