[Issue 24592] ImportC: Bitfield layout wrong for int64 on 32-bit Linux

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun Jun 16 17:00:42 UTC 2024


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

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

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

--- Comment #1 from Dlang Bot <dlang-bot at dlang.rocks> ---
@tim-dlang created dlang/dmd pull request #16590 "Fix bugzilla 24592 - ImportC:
Bitfield layout wrong for int64 on 32-b…" fixing this issue:

- Fix bugzilla 24592 - ImportC: Bitfield layout wrong for int64 on 32-bit Linux

  Type ulong is 64-bit on 32-bit Linux, but has 32-bit alignment.
  This affects the layout of bitfields.

  Also add a new test for ImportC bitfields, which compares size,
  alignment and layout with the host C++ compiler. The existing
  tests compared with fixed values instead.

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

--


More information about the Digitalmars-d-bugs mailing list