[Bug ipa/64139] [4.9/5 Regression] ice in possible_polymorphic_call_targets, at ipa-devirt.c:2410

hubicka at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Mon Jan 26 23:54:00 GMT 2015


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.



More information about the Gcc-bugs mailing list