3 ms·
> Then there would be no undefined behavior at all - but the optimization is still possible. But then an optimization could change the defined behavior of abor
by minitech 5y ago
> Then there would be no undefined behavior at all - but the optimization is still possible.
But then an optimization could change the defined behavior of aborting to not aborting, which is essentially what undefined behavior means and really bad if you don’t treat it exactly like undefined behavior.