https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98032

--- Comment #7 from Richard Biener <rguenth at gcc dot gnu.org> ---
The 10 branch has

  while (BINFO_PRIMARY_P (binfo))
    /* BINFO_VIRTUALS in a primary base isn't accurate, find the derived
       class that actually owns the vtable.  */
    binfo = BINFO_INHERITANCE_CHAIN (binfo);

in lookup_vfn_in_binfo and that would apply here.  Was added with
g:554eb7d2e1ef5660d6a8e1c12ee1d751a70bbf31 for PR95719.

Reply via email to