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

Steven Dwy <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected]

--- Comment #2 from Steven Dwy <[email protected]> ---
My own reduction, compiled with -release -inline -O -lib:

void foo()
{
    void delegate() test;
    bar(test);
}

auto bar(Delegate, Args...)(Delegate deleg, Args args)
{

    if(deleg)
        return deleg(args);
    else
    {
        alias problematicAlias = void;
        return;
    }
}

Interestingly, it seems to be caused by the alias.

--

Reply via email to