gccrs icon indicating copy to clipboard operation
gccrs copied to clipboard

Name resolution fails when referencing local enums

Open antego opened this issue 2 years ago • 0 comments

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

antego avatar May 24 '22 11:05 antego