diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2019-09-23 15:02:38 -0400 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2019-09-23 15:02:38 -0400 |
| commit | 53ae03ebe9e0aa56bca1c9219a47d124b0435258 (patch) | |
| tree | 2f69fc4aeb6bdbc9567338b033337c4556f5c0c0 /test/cli.zig | |
| parent | 29b82d20a4534fc7e3393c21ad637d44d20449a2 (diff) | |
| download | zig-53ae03ebe9e0aa56bca1c9219a47d124b0435258.tar.gz zig-53ae03ebe9e0aa56bca1c9219a47d124b0435258.zip | |
make type_allowed_in_extern more robust
Previously if the type parameter was a pointer, it would assert that the
size of the type was resolved. It used to be that the size of pointers was
always resolved, however with lazy values, pointers gained the
possibility of not having their size resolved.
Now, type_allowed_in_extern triggers the resolution of whether a pointer
is zero bits, and returns a possible error if the resolution fails.
This fixes a compiler assertion when building the
[zootdeck project](https://github.com/donpdonp/zootdeck). I do not have
a test case reduction for the issue.
Diffstat (limited to 'test/cli.zig')
0 files changed, 0 insertions, 0 deletions
