Hacker News new | ask | show | jobs
by ryao 422 days ago
The GCC developers disagree as of last December:

> Type punning via unions is undefined behavior in both c and c++.

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118141#c13

1 comments

I think they're wrong about C.