[Issue 22858] [REG2.099] Incorrect alignment of void*[0]

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Mar 8 00:05:06 UTC 2022


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

Dlang Bot <dlang-bot at dlang.rocks> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |pull

--- Comment #2 from Dlang Bot <dlang-bot at dlang.rocks> ---
@MoonlightSentinel created dlang/dmd pull request #13777 "Fix 22858 - Don't
skip alignment of zero-sized fields" fixing this issue:

- Fix 22858 - Don't skip alignment of zero-sized fields

  The exception for `noreturn` should've checked for `T.alignof == 0`
  instead of `T.sizeof == 0` which also applies to zero-sized arrays.

https://github.com/dlang/dmd/pull/13777

--


More information about the Digitalmars-d-bugs mailing list