Closed
Description
First reported to me at rustwasm/wasm-bindgen#2244 I believe the stack overflow is in rustc itself. This code when compiled yields:
$ rustc +1.44.0 foo.rs
$ rustc +stable foo.rs
thread 'rustc' has overflowed its stack
fatal runtime error: stack overflow
zsh: abort (core dumped) rustc +stable foo.rs
$ rustc +nightly foo.rs
thread 'rustc' has overflowed its stack
fatal runtime error: stack overflow
zsh: abort (core dumped) rustc +nightly foo.rs
where nightly today is:
$ rustc +nightly -vV
rustc 1.47.0-nightly (d7f945163 2020-07-19)
binary: rustc
commit-hash: d7f94516345a36ddfcd68cbdf1df835d356795c3
commit-date: 2020-07-19
host: x86_64-unknown-linux-gnu
release: 1.47.0-nightly
LLVM version: 10.0
Metadata
Metadata
Assignees
Labels
Category: This is a bug.Call for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.Issue: The compiler crashes (SIGSEGV, SIGABRT, etc). Use I-ICE instead when the compiler panics.Helping to "clean up" bugs with minimal examples and bisectionsHigh priorityRelevant to the compiler team, which will review and decide on the PR/issue.Performance or correctness regression from one stable version to another.