Skip to content

ICE : in visit, at rust/checks/lints/rust-lint-marklive.cc:149 #4496

@Anonymous1-design

Description

@Anonymous1-design

Code

fn main() {
    match b"" {
        x if x.matches() => {}
        
    }
}

Meta

1a91028

Error output

<output>
Backtrace

crab1: internal compiler error: in visit, at rust/checks/lints/rust-lint-marklive.cc:149
0x2c1ef7b internal_error(char const*, ...)
      ../../gcc/diagnostic-global-context.cc:787
0xb49f7d fancy_abort(char const*, int, char const*)
      ../../gcc/diagnostics/context.cc:1813
0x9130ef Rust::Analysis::MarkLive::visit(Rust::HIR::MethodCallExpr&)
      ../../gcc/rust/checks/lints/rust-lint-marklive.cc:149
0xf1f84e Rust::Analysis::MarkLive::visit(Rust::HIR::MatchExpr&)
      ../../gcc/rust/checks/lints/rust-lint-marklive.h:209
0xf1eb71 Rust::Analysis::MarkLive::go(Rust::HIR::Crate&)
      ../../gcc/rust/checks/lints/rust-lint-marklive.cc:93
0xf1ee7b Rust::Analysis::MarkLive::Analysis(Rust::HIR::Crate&)
      ../../gcc/rust/checks/lints/rust-lint-marklive.cc:73
0xd1864d Rust::Analysis::ScanDeadcode::Scan(Rust::HIR::Crate&)
      ../../gcc/rust/checks/lints/rust-lint-scan-deadcode.h:45
0xd11fd4 Rust::Session::compile_crate(char const*)
      ../../gcc/rust/rust-session-manager.cc:816
gccrs/build/gcc/crab1 bug.rs -frust-incomplete-and-experimental-compiler-do-not-use -c
Please submit a full bug report, with preprocessed source (by using -freport-bug).
Please include the complete backtrace with any bug report.
See <https://gcc.gnu.org/bugs/> for instructions.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions