Rust-GCC / Rust-GCC/gccrs

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

Open
#4,496 2 comments 0 reactions 1 assignee View on GitHub

@hriztam is already working on this.

Since May 26, 2026.

bug
Dominant language
C++
Stars
2.9k
Forks
231
Avg merge
19h 55m
Merged PRs (30d)
67

Description

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.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.