[Issue 22236] sizeof an empty C struct should be 0, not 1

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Sep 7 22:52:04 UTC 2021


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

--- Comment #4 from Dlang Bot <dlang-bot at 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 at walterbright.com>

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

--


More information about the Digitalmars-d-bugs mailing list