Skip to content

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

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: () };
}

Activity

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

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