[Issue 16508] Alignment of class members is not respected. Affects new, scoped and classInstanceAlignment.

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Aug 7 17:23:45 UTC 2021


kinke <kinke at gmx.net> changed:

           What    |Removed                     |Added
                 CC|                            |kinke at gmx.net

--- Comment #3 from kinke <kinke at gmx.net> ---
> __traits(classInstanceSize) is broken because it returns a useless value that doesn't account for the trailing padding required for proper alignment of object arrays.

There's no such thing as class instance arrays, only arrays of class
references, so that's a non-issue.


More information about the Digitalmars-d-bugs mailing list