December 19, 2022
https://issues.dlang.org/show_bug.cgi?id=23569

          Issue ID: 23569
           Summary: [REG 2.081][ICE] Segmentation fault in in
                    AggregateDeclaration::getType() (this=0x0) at
                    src/dmd/aggregate.d:594
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: regression
          Priority: P1
         Component: dmd
          Assignee: nobody@puremagic.com
          Reporter: ibuclaw@gdcproject.org

module object;
@safe unittest1()
{
    class F
    {
        this(int )
        {
        }
    }
    new F(0) == new F(0);
}
---

#0  0x00005555558c045c in AggregateDeclaration::getType() (this=0x0) at
src/dmd/aggregate.d:594
#1  0x0000555555a16324 in
_D3dmd6opover11op_overloadFCQBa10expression10ExpressionPSQCd6dscope5ScopePEQ
Cv6tokens3EXPZ10visitEqualMFCQDzQCz8EqualExpZQDq (__capture=0x7fffffffc250,
e=0x7ffff7b997c0)
    at src/dmd/opover.d:940
#2  0x0000555555a13e62 in
_D3dmd6opover11op_overloadFCQBa10expression10ExpressionPSQCd6dscope5ScopePEQ
Cv6tokens3EXPZQCl (pop=0x0, sc=0x7ffff7b9a570, e=0x7ffff7b997c0) at
src/dmd/opover.d:1286
#3  0x00005555559bc76e in ExpressionSemanticVisitor::visit(EqualExp*)
(this=0x7fffffffc418,
    exp=0x7ffff7b997c0) at src/dmd/expressionsem.d:11992
#4  0x00005555559915fe in EqualExp::accept(Visitor*) (this=0x7ffff7b997c0,
v=0x7fffffffc418)
    at src/dmd/expression.d:6663
#5  0x00005555559be060 in expressionSemantic(Expression*, Scope*)
(e=0x7ffff7b997c0,
    sc=0x7ffff7b9a570) at src/dmd/expressionsem.d:12515
#6  0x0000555555a45088 in StatementSemanticVisitor::visit(ExpStatement*)
(this=0x7fffffffc4c8,
    s=0x7ffff7b99810) at src/dmd/statementsem.d:205
#7  0x0000555555a415d2 in ExpStatement::accept(Visitor*) (this=0x7ffff7b99810,
v=0x7fffffffc4c8)
    at src/dmd/statement.d:485
#8  0x0000555555a44f6c in statementSemantic(Statement*, Scope*)
(s=0x7ffff7b99810, sc=0x7ffff7b9a570)
    at src/dmd/statementsem.d:147
#9  0x0000555555a4534f in StatementSemanticVisitor::visit(CompoundStatement*)
(this=0x7fffffffc7e8,
    cs=0x7ffff7b99840) at src/dmd/statementsem.d:268
#10 0x0000555555a41af6 in CompoundStatement::accept(Visitor*)
(this=0x7ffff7b99840, v=0x7fffffffc7e8)
    at src/dmd/statement.d:628
#11 0x0000555555a44f6c in statementSemantic(Statement*, Scope*)
(s=0x7ffff7b99840, sc=0x7ffff7b9a570)
    at src/dmd/statementsem.d:147

--