Thread overview
[Issue 21969] importC: Error: bit fields are not supported
May 25, 2021
Iain Buclaw
May 25, 2021
Iain Buclaw
Jun 21, 2021
Dlang Bot
Aug 30, 2021
Dlang Bot
Aug 30, 2021
Dlang Bot
Sep 02, 2021
Dlang Bot
May 25, 2021
https://issues.dlang.org/show_bug.cgi?id=21969

Iain Buclaw <ibuclaw@gdcproject.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |ImportC, rejects-valid
                 CC|                            |ibuclaw@gdcproject.org

--
May 25, 2021
https://issues.dlang.org/show_bug.cgi?id=21969

--- Comment #1 from Iain Buclaw <ibuclaw@gdcproject.org> ---
(In reply to Iain Buclaw from comment #0)
> The above can be translated into the following D representation without compromising ABI.
> ---
> struct bitfieldsA
> {
>   int start;
>   ushort __bitfield_padding_0;
>   int end;
> }
> 
If we need to expose the original names of the bit-fields, then @property functions and bitmasks will also suffice.

--
June 21, 2021
https://issues.dlang.org/show_bug.cgi?id=21969

--- Comment #2 from Dlang Bot <dlang-bot@dlang.rocks> ---
@ibuclaw created dlang/dmd pull request #12722 "importC: Implement C99 bit-fields - front-end semantic only" mentioning this issue:

- partial fix Issue 21969 - importC: Error: bit fields are not supported

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

--
August 30, 2021
https://issues.dlang.org/show_bug.cgi?id=21969

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

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

--- Comment #3 from Dlang Bot <dlang-bot@dlang.rocks> ---
@ibuclaw created dlang/dmd pull request #13033 "fix Issue 21969 - importC: Error: bit fields are not supported" fixing this issue:

- fix Issue 21969 - importC: Error: bit fields are not supported

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

--
August 30, 2021
https://issues.dlang.org/show_bug.cgi?id=21969

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

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

--- Comment #4 from Dlang Bot <dlang-bot@dlang.rocks> ---
dlang/dmd pull request #13033 "fix Issue 21969 - importC: Error: bit fields are not supported" was merged into master:

- 580a16b91ca1a7dee3d2aa66fd7b11da73b507b5 by Iain Buclaw:
  fix Issue 21969 - importC: Error: bit fields are not supported

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

--
September 02, 2021
https://issues.dlang.org/show_bug.cgi?id=21969

--- Comment #5 from Dlang Bot <dlang-bot@dlang.rocks> ---
dlang/dmd pull request #13037 "[stable] Cherry-pick bit-field fixes from master" was merged into stable:

- 497464b45bd972426685a33606922dbef3216a52 by Iain Buclaw:
  fix Issue 21969 - importC: Error: bit fields are not supported

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

--