Jump to page: 1 2
Thread overview
[Issue 22638] [REG 2.096][ICE] cod4.d: Assertion cast(int)sz > 0 failed
[Issue 22638] [ICE] cod4.d: Assertion `cast(int)sz > 0' failed
Dec 30, 2021
Tim
Jan 04, 2022
Iain Buclaw
[Issue 22638] [REG 2.096][ICE] cod4.d: Assertion `cast(int)sz > 0' failed
Jan 04, 2022
Iain Buclaw
Jan 04, 2022
Iain Buclaw
Jan 04, 2022
Iain Buclaw
Dec 21, 2022
Walter Bright
Dec 21, 2022
Walter Bright
Dec 22, 2022
Walter Bright
Dec 22, 2022
Dlang Bot
Dec 22, 2022
Dlang Bot
Jan 01, 2023
Dlang Bot
December 30, 2021
https://issues.dlang.org/show_bug.cgi?id=22638

Tim <tim.dlang@t-online.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |backend, C++, ice

--
January 04, 2022
https://issues.dlang.org/show_bug.cgi?id=22638

Iain Buclaw <ibuclaw@gdcproject.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ibuclaw@gdcproject.org
           Severity|normal                      |regression

--- Comment #1 from Iain Buclaw <ibuclaw@gdcproject.org> ---
ICE started since 2.096.0.  Before then program just failed to link.

--
January 04, 2022
https://issues.dlang.org/show_bug.cgi?id=22638

Iain Buclaw <ibuclaw@gdcproject.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|[ICE] cod4.d: Assertion     |[REG 2.096][ICE] cod4.d:
                   |`cast(int)sz > 0' failed    |Assertion `cast(int)sz > 0'
                   |                            |failed

--
January 04, 2022
https://issues.dlang.org/show_bug.cgi?id=22638

--- Comment #2 from Iain Buclaw <ibuclaw@gdcproject.org> ---
Caused by https://github.com/dlang/dmd/pull/12012

--
January 04, 2022
https://issues.dlang.org/show_bug.cgi?id=22638

Iain Buclaw <ibuclaw@gdcproject.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |ice-on-valid-code

--
December 21, 2022
https://issues.dlang.org/show_bug.cgi?id=22638

Walter Bright <bugzilla@digitalmars.com> changed:

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

--- Comment #3 from Walter Bright <bugzilla@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());
}

--
December 21, 2022
https://issues.dlang.org/show_bug.cgi?id=22638

--- Comment #4 from Walter Bright <bugzilla@digitalmars.com> ---
Even smaller:

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

extern(C++) void set(const S s);

void disp()
{
    S p;
    return set(p);
}

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

Walter Bright <bugzilla@digitalmars.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|[REG 2.096][ICE] cod4.d:    |[REG 2.096][ICE] cod4.d:
                   |Assertion `cast(int)sz > 0' |Assertion cast(int)sz > 0
                   |failed                      |failed

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

Dlang Bot <dlang-bot@dlang.rocks> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |pull

--- Comment #5 from Dlang Bot <dlang-bot@dlang.rocks> ---
@WalterBright created dlang/dmd pull request #14732 "fix Issue 22638 - [REG 2.096][ICE] cod4.d: Assertion cast(int)sz > 0 …" fixing this issue:

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

https://github.com/dlang/dmd/pull/14732

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

Dlang Bot <dlang-bot@dlang.rocks> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--- Comment #6 from Dlang Bot <dlang-bot@dlang.rocks> ---
dlang/dmd pull request #14732 "fix Issue 22638 - [REG 2.096][ICE] cod4.d: Assertion cast(int)sz > 0 …" was merged into stable:

- f70490871b5796d6d1c42958d58657624c51b5d5 by Walter Bright:
  fix Issue 22638 - [REG 2.096][ICE] cod4.d: Assertion cast(int)sz > 0 failed

https://github.com/dlang/dmd/pull/14732

--
« First   ‹ Prev
1 2