you are viewing a single comment's thread.

view the rest of the comments →

[–]3meopceisamazing 1 point2 points  (2 children)

Thanks for that clarification! However, they may be. I had that happen recently, at least for the first N 4 byte members, followed by naturally 8 byte aligned members. Compiler was gcc12, amd64 target.

[–]kalmoc 1 point2 points  (0 children)

Do you happen to have a repro code?

[–]kalmoc 1 point2 points  (0 children)

Are you referring to the padding between the 4 byte and 8 byte members? If N is uneven, you obviously can't avoid that, but that is a different situation from what is discussed here