http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58585
--- Comment #7 from Jason Merrill <jason at gcc dot gnu.org> --- (In reply to Jan Hubicka from comment #6) > It does not fix the problem, unfortunately. This is what happens: Ah, right. We don't have an A binfo in C's base list. I believe you can distinguish this case by looking at the BINFO_INHERITANCE_CHAIN of the A binfo; in this case, it should point back to C rather than to B because A is a primary base of C and not of B-in-C.