Re: [Bug c++/37715] New: Different class sizes with public/private and alignments

2008-10-02 Thread Andrew Thomas Pinski
Sent from my iPhone On Oct 2, 2008, at 2:09 AM, "adam at os dot inf dot tu-dresden dot de" <[EMAIL PROTECTED]> wrote: I've been experiencing some (for me) rather unexpected behavior with some C++ code. The following is a very reduced test case: This comes down to non pod vs pod and tai

[Bug c++/37715] New: Different class sizes with public/private and alignments

2008-10-02 Thread adam at os dot inf dot tu-dresden dot de
I've been experiencing some (for me) rather unexpected behavior with some C++ code. The following is a very reduced test case: class A { private: void *one; } __attribute__((aligned(16))); class C {}; class L { public: class M : A { C _c; }; M m; }; L x; It's about the size of L::M. I.e. if thi