Thread overview
[Issue 22236] sizeof an empty C struct should be 0, not 1
Aug 24, 2021
Walter Bright
Aug 24, 2021
Dlang Bot
Aug 25, 2021
Dlang Bot
Sep 02, 2021
Dlang Bot
Sep 07, 2021
Dlang Bot
August 24, 2021
https://issues.dlang.org/show_bug.cgi?id=22236

Walter Bright <bugzilla@digitalmars.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |ImportC

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

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

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

--- Comment #1 from Dlang Bot <dlang-bot@dlang.rocks> ---
@WalterBright created dlang/dmd pull request #13009 "fix Issue 22236 - sizeof an empty C struct should be 0, not 1" fixing this issue:

- fix Issue 22236 - sizeof an empty C struct should be 0, not 1

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

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

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

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

--- Comment #2 from Dlang Bot <dlang-bot@dlang.rocks> ---
dlang/dmd pull request #13009 "fix Issue 22236 - sizeof an empty C struct should be 0, not 1" was merged into master:

- d3a3e01e493cf260a5eef745c4700f367eedd310 by Walter Bright:
  fix Issue 22236 - sizeof an empty C struct should be 0, not 1

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

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

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

- 83bad681cf4ca898ee24659cf9e912166c9a637b by Walter Bright:
  fix Issue 22236 - sizeof an empty C struct should be 0, not 1

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

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

--- Comment #4 from Dlang Bot <dlang-bot@dlang.rocks> ---
dlang/dmd pull request #13053 "merge stable" was merged into master:

- 41a91bf900f9a8d2e7f53c115e927485284c7b14 by Iain Buclaw:
  [stable] Cherry-pick bit-field fixes from master (#13037)

  * ImportC: static initializers for bit fields

  * Define TargetC.BitFieldStyle to support different implementations of bit
fields

  * fix Issue 22236 - sizeof an empty C struct should be 0, not 1

  * ImportC: add support for Posix bit fields

  * ImportC add Posix bitfield support

  * fix Issue 22245 - importC: Error: found `.` when expecting `)`

  * ImportC: posix bit field layout

  * ImportC: implement Microsoft bitfield layout

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

  * ImportC: add Digital Mars C bitfield support

  Co-authored-by: Walter Bright <walter@walterbright.com>

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

--