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

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Mar 8 01:53:13 UTC 2022


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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--- Comment #3 from Dlang Bot <dlang-bot at dlang.rocks> ---
dlang/dmd pull request #13777 "Fix 22858 - Don't skip alignment of zero-sized
fields" was merged into stable:

- e2a9d45a2e27074893c8e8c5f63cf56f95b9764a by MoonlightSentinel:
  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