gccrs
gccrs copied to clipboard
Name resolution fails when referencing local enums
Follow up for https://github.com/Rust-GCC/gccrs/pull/1241
This test case
fn main() -> i32 {
enum E {
X(u8),
}
let v = E::X(4);
0
}
fails with the error
rust1: internal compiler error: in append_reference_for_def, at rust/resolve/rust-name-resolver.cc:200