Skip to content

ICE when using target_feature with a const #64768

Closed

Description

The following code snippet triggers a ICE:

#[target_feature(avx2)]
const FOO: usize = 7;

rustc 1.37.0 (eae3437df 2019-08-13) running on x86_64-unknown-linux-gnu

Bug was found on playground

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

Metadata

Assignees

Labels

A-typesystemArea: The type systemI-ICEIssue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️P-highHigh priorityT-compilerRelevant to the compiler team, which will review and decide on the PR/issue.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions