https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64139
Jan Hubicka <hubicka at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Depends on| |60871 --- Comment #7 from Jan Hubicka <hubicka at gcc dot gnu.org> --- Here get_binfo_at_offset gives up looking for base of G of type B at offset 128. It identifies the base field correctly but then it gets lost looking up the binfo by looking into A instead of G bases. This is because in memory layout of G there is A in between G's data and G's virtual base. I suppose the binfo lookup may really need to be turned into a recursive function when virtual bases are involved. This seems to be the same issue as PR60871.