Skip to content

Unions that convert () to a reference don't workΒ #507

@fee1-dead

Description

@fee1-dead

This came up at #420, see more details there. Basic repro (a copy of MaybeUninit):

// build-pass

#[spirv_std::spirv(fragment)]
pub fn main() {
    union A { x: (), y: &'static glam::Vec4 }
    let a = A { x: () };
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions