Skip to content

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

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.

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

    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