Closed
Description
This code crashes in LLVM during codegen on stable, beta, and nightly:
#[no_mangle]
fn whatever() {
extern "Rust" {
fn main();
}
unsafe { main(); }
}
This originally happened in real-world code (a code base derived from cortex-m-rt).
This issue has been assigned to @jumbatm via this comment.
Metadata
Metadata
Assignees
Labels
Area: Code generation parts specific to LLVM. Both correctness bugs and optimization-related issues.Category: This is a bug.Issue: The compiler crashes (SIGSEGV, SIGABRT, etc). Use I-ICE instead when the compiler panics.High priorityRelevant to the compiler team, which will review and decide on the PR/issue.