Re:Low Level Bit Hacks You Absolutely Must Know
by jcranmer on Friday May 11, 2018 @09:32AM
(#17047170)
It's explicitly legal in both C99 and C11, but C99 forgot to remove it from its master (non-normative) list of undefined behavior. It's up for debate whether or not it's legal in C++ (ISTR a C++0x draft that copied the C99 changes to unions, but then they added unrestricted unions and completely changed the verbiage to have almost no relation to the C99 text).
[ Parent
| on HN ]
There are no comments on this comment yet.