|
|
|
|
|
by trealira
422 days ago
|
|
It doesn't. That commenter is saying that in C99, it was unspecified behavior. Since C11 onward, it's been removed from the unspecified behavior annex and type punning is allowed, though it may generate a trap/non-value representation. It was never undefined behavior, which is different. Edit: no, it's still in the unspecified behavior annex, that's my mistake. It's still not undefined, though. |
|
That said, I am going to defer to the GCC developers on this since I do not have time to make sense of all versions of the C standard.