December 22, 2022
https://issues.dlang.org/show_bug.cgi?id=23574

          Issue ID: 23574
           Summary: ICE: AssertError@src/dmd/optimize.d(866): Assertion
                    failure
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: critical
          Priority: P1
         Component: dmd
          Assignee: nobody@puremagic.com
          Reporter: ibuclaw@gdcproject.org

Reduced from https://github.com/dlang/dmd/pull/14726
---
module object;

class Object
{
}

bool opEquals(LHS, RHS)(LHS lhs, RHS)
{
    opEquals(cast()lhs);
}

class TypeInfo
{
}

bool _xopEquals()
{
}

const(char)SDL_GetKeyName()
{
    class MyClass
    {
        S17915!MyClass m_member;
    }
}

struct S17915(T)
{
    T owner;
}

--