-
Notifications
You must be signed in to change notification settings - Fork 13.6k
Closed
Labels
A-LLVMArea: Code generation parts specific to LLVM. Both correctness bugs and optimization-related issues.Area: Code generation parts specific to LLVM. Both correctness bugs and optimization-related issues.A-diagnosticsArea: Messages for errors, warnings, and lintsArea: Messages for errors, warnings, and lints
Description
This snippet: (Playpen link)
#![allow(unstable)]
extern crate test;
fn main() {
let a: Vec<u8> = Vec::with_capacity(::std::usize::MAX);
::test::black_box(a);
}
Causes the program to close with a SIGILL (Illegal instruction) error. I would have expected something like a SIGSEGV instead.
Metadata
Metadata
Assignees
Labels
A-LLVMArea: Code generation parts specific to LLVM. Both correctness bugs and optimization-related issues.Area: Code generation parts specific to LLVM. Both correctness bugs and optimization-related issues.A-diagnosticsArea: Messages for errors, warnings, and lintsArea: Messages for errors, warnings, and lints