Possible Duplicate:
Undefined, unspecified and implementation-defined behavior
I'm trying to deepen my understanding of undefined behavior in C++. Suppose a C++ compiler will intentionally detect some cases of undefined behavior - for example, modifying the variable twice between two sequence points:
x++ = 2;
Once that imaginary compiler reliably detects such a situation it will say emit ten totally random machine instructions into the produced machine code.
According to C++ standard, wherever something is classified as UB there're no requirements on what happens. Will the described imaginary compiler be conformant to the C++ standard?