[Issue 16705] [REG2.069] TaskPool.reduce fails to compile "cannot get frame pointer to D main"

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Dec 27 17:56:50 UTC 2019


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

berni44 <bugzilla at d-ecke.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bugzilla at d-ecke.de

--- Comment #11 from berni44 <bugzilla at d-ecke.de> ---
Not sure, if this helps. With the help of dustmite I reduced the example and
Phobos to the following code:

---
void main()
{
    TaskPool pool;
    pool.reduce(map!(a=>1));
}

struct Task(Args)
{
    Args a;
}

struct TaskPool
{
    auto reduce(Args)(Args args)
    {
        return Task!(typeof(args))();
    }
}

auto map(fun...)()
{
    return MapResult!fun();
}

struct MapResult(alias fun)
{
    void x() {}
}
---

--


More information about the Digitalmars-d-bugs mailing list