New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

@bytesToSlice crashes the compiler #1551

Closed
Hejsil opened this Issue Sep 18, 2018 · 0 comments

Comments

Projects
None yet
2 participants
@Hejsil
Member

Hejsil commented Sep 18, 2018

const F = packed struct {
    a: u8,
};


test "" {
    var b: [1]u8 = undefined;
    var f = @bytesToSlice(F, b);
}
zig/src/analyze.cpp:6316: uint32_t get_abi_alignment(CodeGen*, ZigType*): Assertion `type_is_resolved(type_entry, ResolveStatusAlignmentKnown)' failed.

@andrewrk andrewrk added this to the 0.3.0 milestone Sep 18, 2018

@andrewrk andrewrk added the bug label Sep 18, 2018

@andrewrk andrewrk closed this in d353d5a Sep 18, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment