Skip to content
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

packed struct causes compiler crash when bool field before array #677

andrewrk opened this Issue Jan 9, 2018 · 0 comments


None yet
1 participant
Copy link

andrewrk commented Jan 9, 2018

const Foo = packed struct {
    a: bool,
    b: [0x16]u8,

fn bar(slice: []const u8) void {}

export fn entry(foo: *Foo) void {
zig: /home/andy/dev/zig/src/codegen.cpp:2205: LLVMOpaqueValue* ir_render_load_ptr(CodeGen*, IrExecutable*, IrInstructionLoadPtr*): Assertion `!handle_is_ptr(child_type)' failed.

@andrewrk andrewrk added the bug label Jan 9, 2018

@andrewrk andrewrk added this to the 0.2.0 milestone Jan 9, 2018

andrewrk referenced this issue in Hejsil/pokemon-randomizer Jan 9, 2018

@andrewrk andrewrk modified the milestones: 0.2.0, 0.3.0 Mar 12, 2018

@andrewrk andrewrk modified the milestones: 0.3.0, 0.4.0 Sep 3, 2018

@andrewrk andrewrk closed this in 1066004 Feb 21, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.