https://issues.dlang.org/show_bug.cgi?id=16508

Max Samukha <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected]

--- Comment #2 from Max Samukha <[email protected]> ---
std.traits.classInstanceAlignment is broken because it uses "alignof" to
calculate the maximum alignment of the class fields, and "alignof" on
class/struct fields is broken because it returns the alignment of field types
instead of the alignment of fields. __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. GC allocations are also
broken as they return misaligned class objects.

--

Reply via email to