Skip to content

ICE when using target_feature with a const #64768

Closed
@moonheart08

Description

@moonheart08

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

Metadata

Metadata

Assignees

Labels

A-type-systemArea: 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