MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/cpp/comments/1rc9yat/bitfield_layout/o7awsjy/
r/cpp • u/mttd • Feb 23 '26
13 comments sorted by
View all comments
Show parent comment
1
would the compiler have freedom to arbitrarily change layout of the flexible struct? if so, you couldnt link object files produced by different compilers
2 u/kreco Feb 25 '26 Indeed! The "flexible" part needs to be deterministic and not arbitrary.
2
Indeed! The "flexible" part needs to be deterministic and not arbitrary.
View all comments
Show parent comment
1
u/TheoreticalDumbass :illuminati: Feb 25 '26
would the compiler have freedom to arbitrarily change layout of the flexible struct? if so, you couldnt link object files produced by different compilers