[Bug c/13078] sizeof returns incorrect 4 byte aligned value when structure contains integers and smaller types

falk at debian dot org gcc-bugzilla@gcc.gnu.org
Sun Nov 16 20:03:00 GMT 2003


------- Additional Comments From falk at debian dot org  2003-11-16 20:03 -------
Well, this is just how structs work in C. If you don't like it, use 
__attribute__((packed)).


-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |INVALID


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13078



More information about the Gcc-bugs mailing list