Skip to content

ICE in visit, at rust/hir/rust-ast-lower-pattern.cc:85 #3917

@sososopy

Description

@sososopy

Code

enum Foo {}
enum Other {}
fn main() {
    match Other{
        Other(Foo(..)) => {}
    }
}

Version information

5c3e2ad

Command

gccrs -frust-incomplete-and-experimental-compiler-do-not-use ./test.rs

Program output

crab1: internal compiler error: in visit, at rust/hir/rust-ast-lower-pattern.cc:85
0x29abeb6 internal_error(char const*, ...)
        ../../gccrs/gcc/diagnostic-global-context.cc:517
0xb48036 fancy_abort(char const*, int, char const*)
        ../../gccrs/gcc/diagnostic.cc:1803
0x9132fd Rust::HIR::ASTLoweringPattern::visit(Rust::AST::TupleStructPattern&)
        ../../gccrs/gcc/rust/hir/rust-ast-lower-pattern.cc:85
0xdfb5a1 Rust::HIR::ASTLoweringPattern::translate(Rust::AST::Pattern&, bool)
        ../../gccrs/gcc/rust/hir/rust-ast-lower-pattern.cc:33
0xdfc3af Rust::HIR::ASTLoweringPattern::visit(Rust::AST::TupleStructPattern&)
        ../../gccrs/gcc/rust/hir/rust-ast-lower-pattern.cc:97
0xdfb5a1 Rust::HIR::ASTLoweringPattern::translate(Rust::AST::Pattern&, bool)
        ../../gccrs/gcc/rust/hir/rust-ast-lower-pattern.cc:33
0xdf22d0 Rust::HIR::ASTLoweringExprWithBlock::visit(Rust::AST::MatchExpr&)
        ../../gccrs/gcc/rust/hir/rust-ast-lower.cc:453
0xe0d49e Rust::HIR::ASTLoweringExprWithBlock::translate(Rust::AST::ExprWithBlock&, bool*)
        ../../gccrs/gcc/rust/hir/rust-ast-lower-block.h:153
0xe0d49e Rust::HIR::ASTLoweringExpr::visit(Rust::AST::MatchExpr&)
        ../../gccrs/gcc/rust/hir/rust-ast-lower-expr.cc:728
0xe0ed8b Rust::HIR::ASTLoweringExpr::translate(Rust::AST::Expr&, bool*)
        ../../gccrs/gcc/rust/hir/rust-ast-lower-expr.cc:44
0xdf0089 Rust::HIR::ASTLoweringBlock::visit(Rust::AST::BlockExpr&)
        ../../gccrs/gcc/rust/hir/rust-ast-lower.cc:145
0xe02c7c Rust::HIR::ASTLoweringBlock::translate(Rust::AST::BlockExpr&, bool*)
        ../../gccrs/gcc/rust/hir/rust-ast-lower-block.h:37
0xe02c7c Rust::HIR::ASTLoweringItem::visit(Rust::AST::Function&)
        ../../gccrs/gcc/rust/hir/rust-ast-lower-item.cc:447
0xdfdf80 Rust::HIR::ASTLoweringItem::translate(Rust::AST::Item&)
        ../../gccrs/gcc/rust/hir/rust-ast-lower-item.cc:38
0xdef958 Rust::HIR::ASTLowering::go()
        ../../gccrs/gcc/rust/hir/rust-ast-lower.cc:81
0xdefdf8 Rust::HIR::ASTLowering::Resolve(Rust::AST::Crate&)
        ../../gccrs/gcc/rust/hir/rust-ast-lower.cc:71
0xca2027 Rust::Session::compile_crate(char const*)
        ../../gccrs/gcc/rust/rust-session-manager.cc:662
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