# Allow zero-sized fields in extern structs \(\#16404\) · gitcafe/zig

[View on GitCafe](https://git.cafe/gitcafe/zig/commit/796927b900ad4b774c30d1cb545d606f23040d2f)

Repository: [gitcafe/zig](https://git.cafe/gitcafe/zig)

Visibility: public

Requested revision: 796927b900ad4b774c30d1cb545d606f23040d2f

Requested commit: 796927b900ad4b774c30d1cb545d606f23040d2f

Commit: 796927b900ad4b774c30d1cb545d606f23040d2f

Tree: 7fd53185ae5dfadce29a8ab95f27d5bade0ae05c

Author: AdamGoertz

Committer: GitHub

## Message

```
Allow zero-sized fields in extern structs (#16404)

This change allows the following types to appear in extern structs:
* Zero-bit integers
* void
* zero-sized structs and packed structs
* enums with zero-bit backing integers
* arrays of any length with zero-size elements
```

## Parents

- [8d1805f81c97a0b773772e86aa39f26c894b7985](https://git.cafe/gitcafe/zig/commit/8d1805f81c97a0b773772e86aa39f26c894b7985?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zig/tree/796927b900ad4b774c30d1cb545d606f23040d2f?format=markdown)
