Hacker News new | ask | show | jobs
by shrimp_emoji 1161 days ago
I'll just leave this here: https://lkml.org/lkml/2018/6/5/769 ;p

And maybe this: https://dl.acm.org/doi/10.1145/3477113.3487274

1 comments

Unions for type punning is actually entirely valid in C, it's only UB in C++.

(I agree though that the C standard isn't actually relevant in the real world, most C compilers treat it more or less as a 'suggestion', unless enforced with options like '-pedantic')