Thread overview
[Issue 12345] byLine.popFront() fails with 'Internal error: backend/cod2.c 2200' when compiled with '-inline' switch
Apr 09, 2014
Kenji Hara
May 30, 2019
Basile-z
Mar 21, 2020
Basile-z
Jun 10, 2022
mhh
April 09, 2014
https://issues.dlang.org/show_bug.cgi?id=12345

--- Comment #4 from Kenji Hara <k.hara.pg@gmail.com> ---
A shrunken test case that reproduces same internal error in win32.

void main()
{
    ByLine!()().popFront();
}

struct ByLine()
{
    RefCounted!(ByLineImpl!()) impl;

    void popFront()
    {
        impl._refCounted._store._payload.popFront();
    }
}

private struct ByLineImpl()
{
    char[] line;

    void popFront()
    {
        if (line.length == 0)
        {
            line = null;
        }
        else if (line.length == 0 ? false : line[$-1] == '\n')
        {
            line = line.ptr[0 .. line.length - 1];
        }
    }
}

struct RefCounted(T)
{
    struct RefCountedStore
    {
        private struct Impl
        {
            T _payload;
        }
        private Impl* _store;
    }
    RefCountedStore _refCounted;

    ~this() {}
}

--
May 30, 2019
https://issues.dlang.org/show_bug.cgi?id=12345

Basile-z <b2.temp@gmx.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |b2.temp@gmx.com
           Hardware|x86_64                      |x86
                 OS|All                         |Windows

--
March 21, 2020
https://issues.dlang.org/show_bug.cgi?id=12345

Basile-z <b2.temp@gmx.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|b2.temp@gmx.com             |

--
June 10, 2022
https://issues.dlang.org/show_bug.cgi?id=12345

mhh <maxhaton@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |maxhaton@gmail.com
         Resolution|---                         |WORKSFORME

--- Comment #5 from mhh <maxhaton@gmail.com> ---
Cannot reproduce.

--