On Jul 28, 2009, at 10:02 AM, Fariborz Jahanian wrote:

I intentionally did not emit field offsets for base classes because:

1. They're somewhat different from regular fields
2. This makes the FieldOffsets mean something different in C++ vs C.

I have a patch that implements type layout for non-virtual base classes and I plan to land it later today.

I thought that this would change. I hope also that I would be able to get the offset of each base laid out in the current class
by a suitable API after your changes.


Yes, we definitely need that for derived-to-base and base-to-derived casts :)

Thanks!

Anders


_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits

Reply via email to