This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/16389] [ABI] POD array layout and alignment shifting [3.2/3.3/3.4]


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-07-02 01:42 -------
The C front-end gets this right:
        align   offset
sa.a2   4       0
sa.a3   4       8
sa2.a2  4       4
sa2.a3  4       12

sb.b2   4       0
sb.b3   4       12
sb2.b2  4       4
sb2.b3  4       16

sa      4
sa      4
sb      4
sb      4

So it is just the alignof which is wrong.

-- 


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]