This is the mail archive of the gcc-patches@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]

Re: [C++] Fix 3130, 3131


>>>>> "Nathan" == Nathan Sidwell <nathan@codesourcery.com> writes:

> that make sense?

Yes, thanks.  Eep.

>> I wish we had had more implementation experience before freezing the
>> ABI...

> you, me and Mark! This virtual primary base thing has an unbelievable
> number of unobvious side effects.

Indeed.  Had we known, I think we would have passed on the idea.

>> !       if (b == rtti_binfo
>> !         || (b && binfo_for_vbase (BINFO_TYPE (b),
>> !                                   BINFO_TYPE (rtti_binfo))))
>> !       primary = last;
> Unless I'm mistaken, this is the only assignment to PRIMARY, and LAST
> must be non-null here, so the next if can be subsumed.

True.  If binfo was primary in the old type, it must be primary (to
something) in the new type.

Jason


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