Closed
Description
(imported from improperly closed bug #17452)
static X: usize = unsafe { *(0 as *const usize) };
fn main() {
println!("X: {}", X);
}
This causes LLVM to abort, causing a core dump from rustc
. :(
(I suspect we should be more careful, somehow, about handling such things in our const expression evaluator. Not 100% sure how best to resolve this though.)
Metadata
Metadata
Assignees
Labels
No labels