# stage2: integer-backed packed structs · gitcafe/zig

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

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

Visibility: public

Requested revision: 6249a24e81b9b3df3d5ca99b57f22470b9ac486c

Requested commit: 6249a24e81b9b3df3d5ca99b57f22470b9ac486c

Commit: 6249a24e81b9b3df3d5ca99b57f22470b9ac486c

Tree: 7f9ad767459ce5c1227365368d9034576b04e018

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
stage2: integer-backed packed structs

This implements #10113 for the self-hosted compiler only. It removes the
ability to override alignment of packed struct fields, and removes the
ability to put pointers and arrays inside packed structs.

After this commit, nearly all the behavior tests pass for the stage2 llvm
backend that involve packed structs.

I didn't implement the compile errors or compile error tests yet. I'm
waiting until we have stage2 building itself and then I want to rework
the compile error test harness with inspiration from Vexu's arocc test
harness. At that point it should be a much nicer dev experience to work
on compile errors.

```

## Parents

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

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