logoalt Hacker News

saagarjhayesterday at 11:22 AM1 replyview on HN

This is a non-standard extension, so your compiler may provide stronger guarantees.


Replies

AlotOfReadingyesterday at 5:28 PM

In practice, both GCC and Clang consider pointers to these unaligned members to be UB and will flag them in UBSAN.