Thread overview
[Issue 20374] Assertion failure: 'e && retregs' hit at cod1.d:1858 on Win32_64 auto-tester with phobos PR#7259
Jan 02, 2021
Walter Bright
February 07, 2020
https://issues.dlang.org/show_bug.cgi?id=20374

moonlightsentinel@disroot.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |moonlightsentinel@disroot.o
                   |                            |rg

--- Comment #1 from moonlightsentinel@disroot.org ---
Slightly reduced test case:

-------------------------------------

import std.array : staticArray;

@nogc void main()
{
    auto arr = ["foo"].staticArray;
}

-------------------------------------

Compiled with DMD32 D Compiler v2.090.0-dirty:

dmd -m64 test.d
Assertion failure: 'e && retregs' on line 1862 in file
'C:\Users\vagrant\clones\dmd\src\dmd\backend\cod1.d'

--
February 07, 2020
https://issues.dlang.org/show_bug.cgi?id=20374

--- Comment #2 from moonlightsentinel@disroot.org ---
Without Phobos:

void main() @nogc
{
    auto arr = ["foo"].staticArray;
}

string[1] staticArray(string[1] a) @nogc
{
    return a;
}

--
January 02, 2021
https://issues.dlang.org/show_bug.cgi?id=20374

Walter Bright <bugzilla@digitalmars.com> changed:

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

--
January 03, 2021
https://issues.dlang.org/show_bug.cgi?id=20374

moonlightsentinel@disroot.org changed:

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

--- Comment #3 from moonlightsentinel@disroot.org ---
Closing because the assertion failure does not occur with current master

--