[Issue 12697] -inline ICE backend\el.c 802

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Tue Nov 10 11:10:36 PST 2015


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

Steven Dwy <yoplitein at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |yoplitein at gmail.com

--- Comment #2 from Steven Dwy <yoplitein at gmail.com> ---
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.

--


More information about the Digitalmars-d-bugs mailing list