Skip to content

@intCast on vector segfault #11770

@encendre

Description

@encendre

Zig Version

0.10.0-dev.2431+0e6285c8f

Steps to Reproduce

Compile the following code with zig build-exe main.zig

// main.zig
pub fn main() !void {
    const a = @Vector(4, u32){1, 1, 1, 1};
    _ = @intCast(u32, a);
}

Expected Behavior

The compiler should compile the code successfuly

Actual Behavior

The compiler segfault ([1] 683085 segmentation fault (core dumped) zig build-exe main.zig)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugObserved behavior contradicts documented or intended behaviorstage1The process of building from source via WebAssembly and the C backend.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions