-
-
Notifications
You must be signed in to change notification settings - Fork 14.5k
Closed
Labels
A-codegenArea: Code generationArea: Code generationI-crashIssue: The compiler crashes (SIGSEGV, SIGABRT, etc). Use I-ICE instead when the compiler panics.Issue: The compiler crashes (SIGSEGV, SIGABRT, etc). Use I-ICE instead when the compiler panics.T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.
Description
This test case (a permutation of const-autoderef.rs) causes rustc to segfault (somewhere in LLVM):
static B: u8 = (&A)[0];
static A: [u8; 1] = ['h' as u8];
static D: u8 = (&C)[0];
static C: &'static &'static &'static &'static [u8; 1] = & & & &A;
pub fn main() {
assert_eq!(B, A[0]);
assert_eq!(D, A[0]);
}Uncovered while working on separating items from HIR, since the new visitors can sometimes visit items in different orders (unless you force them to do otherwise).
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
A-codegenArea: Code generationArea: Code generationI-crashIssue: The compiler crashes (SIGSEGV, SIGABRT, etc). Use I-ICE instead when the compiler panics.Issue: The compiler crashes (SIGSEGV, SIGABRT, etc). Use I-ICE instead when the compiler panics.T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.