▲ | trealira a day ago | ||||||||||||||||||||||
> In C99, it was made expressly legal, but it was erroneously included in the list of undefined behavior annex. In C99, union type punning was put under Annex J.1, which is unspecified behavior, not undefined behavior. Unspecified behavior is basically implementation-defined behavior, except that the implementor is not required to document the behavior. | |||||||||||||||||||||||
▲ | ryao a day ago | parent [-] | ||||||||||||||||||||||
We can use UB to refer to both. :) | |||||||||||||||||||||||
|