3 ms·
> Undefined behavior allows the compiler to handle those cases as errors (e.g. print stack trace and crash). Or to perform static analysis. Or, to do something
by ori_b 11y ago
> Undefined behavior allows the compiler to handle those cases as errors (e.g. print stack trace and crash). Or to perform static analysis. Or, to do something predictable.
The term you're looking for here is "implementation defined".
- _kst_ 11y agoNot really. "Undefined behavior" is behavior that is not defined by the language standard. A given implementation is free to define the behavior as it likes.