rustc does not detect incorrect (generic) enum structure and overflow its stack instead #100618
Labels
A-codegen
Area: Code generation
C-bug
Category: This is a bug.
I-crash
Issue: The compiler crashes (SIGSEGV, SIGABRT, etc). Use I-ICE instead when the compiler panics.
S-bug-has-test
Status: This bug is tracked inside the repo by a `known-bug` test.
I tried this code:
I expected to see this happen: rustc refuses to compile this enum and tell me this (definition) does not work
Instead, this happened: rustc overflows its stack and the compile process ends abruptly
Meta
rustc --version --verbose
:Backtrace
The text was updated successfully, but these errors were encountered: