https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105942
Bug ID: 105942 Summary: [12 Regression] d: internal compiler error: in visit, at d/expr.cc:945 Product: gcc Version: 12.1.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: d Assignee: ibuclaw at gdcproject dot org Reporter: ibuclaw at gdcproject dot org Target Milestone: --- --- void ice() { struct hasDtor { int i; ~this() { } } hasDtor[4] arr = hasDtor(4); } --- 0x9baaa0 ExprVisitor::visit(AssignExp*) ../../src/gcc/d/expr.cc:945 0x9b6a23 build_expr(Expression*, bool, bool) ../../src/gcc/d/expr.cc:3040 0x9b65e8 DeclVisitor::visit(VarDeclaration*) ../../src/gcc/d/decl.cc:735 0x9b06ba DeclVisitor::build_dsymbol(Dsymbol*) ../../src/gcc/d/decl.cc:146 0x9b06ba build_decl_tree(Dsymbol*) ../../src/gcc/d/decl.cc:1010 0x9b6ddd ExprVisitor::visit(DeclarationExp*) ../../src/gcc/d/expr.cc:2008 0x9b6a23 build_expr(Expression*, bool, bool) ../../src/gcc/d/expr.cc:3040 0x9b6abf build_expr_dtor(Expression*) ../../src/gcc/d/expr.cc:3063 0x9c31e5 IRVisitor::visit(ExpStatement*) ../../src/gcc/d/toir.cc:1052 0x9c3157 IRVisitor::build_stmt(Statement*) ../../src/gcc/d/toir.cc:274 0x9c3157 IRVisitor::visit(CompoundStatement*) ../../src/gcc/d/toir.cc:1069 0x9c3157 IRVisitor::visit(CompoundStatement*) ../../src/gcc/d/toir.cc:1059 0x9c3157 IRVisitor::build_stmt(Statement*) ../../src/gcc/d/toir.cc:274 0x9c3157 IRVisitor::visit(CompoundStatement*) ../../src/gcc/d/toir.cc:1069 0x9c3157 IRVisitor::visit(CompoundStatement*) ../../src/gcc/d/toir.cc:1059 0x9c2842 IRVisitor::build_stmt(Statement*) ../../src/gcc/d/toir.cc:274 0x9c2842 build_function_body(FuncDeclaration*) ../../src/gcc/d/toir.cc:1481 0x9b5b72 DeclVisitor::visit(FuncDeclaration*) ../../src/gcc/d/decl.cc:969 0x9b06ba DeclVisitor::build_dsymbol(Dsymbol*) ../../src/gcc/d/decl.cc:146 0x9b06ba build_decl_tree(Dsymbol*) ../../src/gcc/d/decl.cc:1010