@cr1901@mastodon.social
@amonakov@mastodon.gamedev.place @siguza@infosec.space @jann@infosec.exchange (Found this by chance). I feel like I must be missing some context, because max(offsetof(struct foo, arr[0]), sizeof(struct foo)) doesn't return "0" for me?
https://godbolt.org/z/ror4KP3sc
@amonakov@mastodon.gamedev.place
@cr1901@mastodon.social @siguza@infosec.space @jann@infosec.exchange is that regarding the last sentence, "admits only zero for a constant N"? To rephrase, the text of the standard allows only zero in place of N in offsetof(foo, flexible_array_member[N]), not any other integer.