[Issue 22638] [REG 2.096][ICE] cod4.d: Assertion `cast(int)sz > 0' failed

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Dec 21 09:03:45 UTC 2022


https://issues.dlang.org/show_bug.cgi?id=22638

Walter Bright <bugzilla at digitalmars.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bugzilla at digitalmars.com

--- Comment #3 from Walter Bright <bugzilla at digitalmars.com> ---
Simplified test case without templates:

struct S
{
    this(ref const(S));
    ~this();
}

struct A
{
    C obj;

    void disp(S params)
    {
        return obj.setS(params);
    }
}

extern(C++) struct C
{
    void setS(ref const S);
    void setS(const S s)
    {
        setS(s);
    }
}

void main()
{
    A a;
    a.disp(S());
}

--


More information about the Digitalmars-d-bugs mailing list