Sorry not to use the tracker, but I have a simple-to-fix bug to report
and didn't want to create yet another web account I'll probably never
touch again.
There appears to be an error in
./modules/core/base/Source/ObjectiveC2/runtime.c - specifically, the
class_addIvar function. When calculating an aligned offset for the new
ivar, the offset is first right-shifted by the alignment but is only
left-shifted again if the field is not already aligned. The end result
is that when adding an ivar that doesn't require any padding, the ivar
will end up at an offset that overlaps something else.
The easiest fix would probably be to add a line "else off = off <<
alignment;" before "ivar->ivar_offset = off;" (which is line 186 in the
svn version I'm looking at here).
-- James
_______________________________________________
Bug-gnustep mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/bug-gnustep