http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45124
Jan Kratochvil <jan.kratochvil at redhat dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jan.kratochvil at redhat | |dot com --- Comment #5 from Jan Kratochvil <jan.kratochvil at redhat dot com> 2011-01-24 10:41:17 UTC --- DWARF3 leaves the meaning for struct/union unspecified: An inheritance entry may have a DW_AT_accessibility attribute. If no accessibility attribute is present, private access is assumed for an entry of a class and public access is assumed for an entry of an interface. DWARF4 specifies: An inheritance entry may have a DW_AT_accessibility attribute. If no accessibility attribute is present, private access is assumed for an entry of a class and public access is assumed for an entry of an interface, struct or union. DWARF2 had: An inheritance entry may have a DW_AT_accessibility attribute. If no accessibility attribute is present, private access is assumed. So I guess DWARF3 was meant like what DWARF4 says and GDB should be changed for both DWARF3 and DWARF4.