4 ms·
It's not UB if the "common initial sequence" exemption applies as it does here.
by acuozzo 2y ago
It's not UB if the "common initial sequence" exemption applies as it does here.
- LegionMammal978 2y agoThe "common initial sequence" in the standard doesn't apply to pointer casts. It only applies to writing to one union member and reading from another union member.
- acuozzo 2y agoI stand corrected. Thank you.