https://gcc.gnu.org/bugzilla/show_bug.cgi?id=124003

--- Comment #4 from Allan Blanchard <[email protected]> ---
I added a new example. This time, all structures are indicated as packed but
instead of a short, I use an int that I try to align to 2. We get:

field_t  : size 4 -- align 2
struct S1: size 5 -- align 1
struct S2: size 6 -- align 2
struct S3: size 5 -- align 1

Which is still surprising.

Reply via email to