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

Tim <tim.dl...@t-online.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |tim.dl...@t-online.de

--- Comment #20 from Tim <tim.dl...@t-online.de> ---
I have also seen a stack overflow with TemplateInstance.needsCodegen and
reduced it to the following code:

bool f(T)(T x)
{
    return false;
}

static foreach(i; 0..60000)
{
    static if(f(i))
    {
    }
}

The failure happens on Windows. It can also be reproduced on Linux by
increasing the number of iterations or reducing the stack size first with the
command "ulimit -s 1024"

--

Reply via email to