January 22, 2021
https://issues.dlang.org/show_bug.cgi?id=18026

Boris Carvajal <boris2.9@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |boris2.9@gmail.com

--
December 28, 2021
https://issues.dlang.org/show_bug.cgi?id=18026

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

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

--- Comment #20 from Tim <tim.dlang@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"

--
December 17, 2022
https://issues.dlang.org/show_bug.cgi?id=18026

Iain Buclaw <ibuclaw@gdcproject.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P1                          |P3

--
January 04, 2023
https://issues.dlang.org/show_bug.cgi?id=18026

Dlang Bot <dlang-bot@dlang.rocks> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |pull

--- Comment #21 from Dlang Bot <dlang-bot@dlang.rocks> ---
@ibuclaw created dlang/dmd pull request #14787 "fix Issue 18026 - Stack overflow in dmd/dtemplate.d:6248, TemplateInstance::needsCodegen()" fixing this issue:

- fix Issue 18026 - Stack overflow in dmd/dtemplate.d:6248,
TemplateInstance::needsCodegen()

https://github.com/dlang/dmd/pull/14787

--
January 15, 2023
https://issues.dlang.org/show_bug.cgi?id=18026

Dlang Bot <dlang-bot@dlang.rocks> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--- Comment #22 from Dlang Bot <dlang-bot@dlang.rocks> ---
dlang/dmd pull request #14787 "fix Issue 18026 - Stack overflow in dmd/dtemplate.d:6248, TemplateInstance::needsCodegen()" was merged into stable:

- ce7c5df44f4ac6aee1671ecbc54bb08c2a8f3e31 by Iain Buclaw:
  fix Issue 18026 - Stack overflow in dmd/dtemplate.d:6248,
TemplateInstance::needsCodegen()

https://github.com/dlang/dmd/pull/14787

--
1 2 3
Next ›   Last »