3 ms·
I'll just leave this here: https://lkml.org/lkml/2018/6/5/769 https://lkml.org/lkml/2018/6/5/769 ;p And maybe this: https://dl.acm.org/doi/10.1145/3477113.3487
by shrimp_emoji 4y ago
I'll just leave this here: https://lkml.org/lkml/2018/6/5/769 https://lkml.org/lkml/2018/6/5/769 ;p
And maybe this: https://dl.acm.org/doi/10.1145/3477113.3487274 https://dl.acm.org/doi/10.1145/3477113.3487274
- flohofwoe 4y agoUnions 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')