# Type: \`struct \{\}\` does not have a well-defined layout · gitcafe/zig

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

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

Visibility: public

Requested revision: 27274d4fdea8061d7afacbb2b179fd49fbaca125

Requested commit: 27274d4fdea8061d7afacbb2b179fd49fbaca125

Commit: 27274d4fdea8061d7afacbb2b179fd49fbaca125

Tree: c822f893fc11d549384a3ba3942aa280011b69b3

Author: mlugg

Committer: Matthew Lugg

## Message

```
Type: `struct {}` does not have a well-defined layout

`Type.hasWellDefinedLayout` was in disagreement with pointer loading
logic about auto-layout structs with zero fields, `struct {}`. For
consistency, these types should not have a well-defined layout.

This is technically a breaking change.

```

## Parents

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

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