Skip to content

Enums with >32 bits on i686 are all canonicalized to 0 #8199

Closed
@alexcrichton

Description

@alexcrichton

The following test fails on i686, and passes on x86_64

enum A {
  A1 = 1 << 41,
}

fn main() {
  assert_eq!(A1 as u64, 1 << 41);
}

This is blocking #7115 until I have time to make a workaround.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-codegenArea: Code generationO-linuxOperating system: Linux

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions