------- Comment #3 from pinskia at gcc dot gnu dot org 2009-04-30 19:01 ------- I think GCC is doing the correct thing here as there is no padding to put _2_emptyB in. And this is not a zero-size base class optimization but rather padding filling class optimization.
Have you read the IA64 C++ ABI (or the ARM EABI C++ ABI) to see what it has to say about this case? -- pinskia at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- Severity|critical |normal http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39981