This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]