Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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).


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: