Thread overview
[Issue 23427] ImportC: some bitfield combinations lead to wrong size struct
Dec 17, 2022
Iain Buclaw
Apr 16, 2023
Dlang Bot
Apr 17, 2023
Dlang Bot
October 20, 2022
https://issues.dlang.org/show_bug.cgi?id=23427

dave287091@gmail.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |ImportC, wrong-code

--
December 17, 2022
https://issues.dlang.org/show_bug.cgi?id=23427

Iain Buclaw <ibuclaw@gdcproject.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P1                          |P3

--
April 13, 2023
https://issues.dlang.org/show_bug.cgi?id=23427

--- Comment #1 from dave287091@gmail.com ---
Created attachment 1869
  --> https://issues.dlang.org/attachment.cgi?id=1869&action=edit
Failure cases

I generated all of the possible structs with bitfields totaling to 32 bits and each member having at least 1 bit. All of these assertions pass with clang and fail with dmd on macOS.

--
April 16, 2023
https://issues.dlang.org/show_bug.cgi?id=23427

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

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

--- Comment #2 from Dlang Bot <dlang-bot@dlang.rocks> ---
@WalterBright created dlang/dmd pull request #15110 "fix Issue 23427 - ImportC: some bitfield combinations lead to wrong s…" fixing this issue:

- fix Issue 23427 - ImportC: some bitfield combinations lead to wrong size struct

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

--
April 17, 2023
https://issues.dlang.org/show_bug.cgi?id=23427

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

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

--- Comment #3 from Dlang Bot <dlang-bot@dlang.rocks> ---
dlang/dmd pull request #15110 "fix Issue 23427 - ImportC: some bitfield combinations lead to wrong s…" was merged into master:

- 3411937473491cb99afe19c3b1dda3026427875b by Walter Bright:
  fix Issue 23427 - ImportC: some bitfield combinations lead to wrong size
struct

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

--