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

x86_64: TODO airAggregateInit implement packed structs with large fields #22915

Open
nektro opened this issue Feb 16, 2025 · 0 comments
Open
Labels
arch-x86_64 64-bit x86 backend-self-hosted bug Observed behavior contradicts documented or intended behavior
Milestone

Comments

@nektro
Copy link
Contributor

nektro commented Feb 16, 2025

Zig Version

0.14.0-dev.3224+5ab511307

Steps to Reproduce and Observed Behavior

const std = @import("std");

test {
    var s = S.init();
    _ = &s;
}

const S = packed struct {
    a: u48,
    b: u80,

    pub fn init() S {
        var a: u48 = 0;
        var b: u80 = 0;
        _ = .{ &a, &b };
        return S{
            .a = a,
            .b = b,
        };
    }
};
$ zig-master test ./test.zig -fno-llvm -fno-lld
test.zig:12:9: error: TODO airAggregateInit implement packed structs with large fields
    pub fn init() S {
    ~~~~^~~~~~~~~~~

Expected Behavior

all tests passed

@nektro nektro added the bug Observed behavior contradicts documented or intended behavior label Feb 16, 2025
@mlugg mlugg added this to the 0.14.0 milestone Feb 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
arch-x86_64 64-bit x86 backend-self-hosted bug Observed behavior contradicts documented or intended behavior
Projects
None yet
Development

No branches or pull requests

3 participants