3 ms·
> The standards writers could have made all UB implementation defined, but they didn't. This is not possible without performance impact, because, in the genera
by layer8 3y ago
> The standards writers could have made all UB implementation defined, but they didn't.
This is not possible without performance impact, because, in the general case, whether a program constitutes UB depends on data and/or previous program flow (halting problem), and thus would require additional runtime checks even for code that happens to never run into UB.