October 11, 2021
https://issues.dlang.org/show_bug.cgi?id=22372

--- Comment #9 from Dlang Bot <dlang-bot@dlang.rocks> ---
dlang/druntime pull request #3585 "Use workaround until issue 22372 is fixed" was merged into master:

- 06615791bcd20ed0edba68869babf76c22787caf by Teodor Dutu:
  Use workaround until issue 22372 is fixed

  Signed-off-by: Teodor Dutu <teodor.dutu@gmail.com>

https://github.com/dlang/druntime/pull/3585

--
October 12, 2021
https://issues.dlang.org/show_bug.cgi?id=22372

Walter Bright <bugzilla@digitalmars.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bugzilla@digitalmars.com

--- Comment #10 from Walter Bright <bugzilla@digitalmars.com> ---
A simplified version:

import core.stdc.stdio;

struct S { int a1, a2, a3; }

void throws2ndCall(ref S x)
{
    __gshared bool b;
    if (b)
        throw new Exception("n == 1");
    b = true;
}

void main()
{
    S[] arr = [S(), S()];
    size_t i;
    try
    {
        for (i = 0; i < 2; i++)
            throws2ndCall(arr[i]);
    }
    catch (Exception o)
    {
        printf("Exception: i = %lu\n", i);  // prints 0
        assert(i == 1);  // this fails
    }
}

--
October 12, 2021
https://issues.dlang.org/show_bug.cgi?id=22372

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

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

--- Comment #11 from Dlang Bot <dlang-bot@dlang.rocks> ---
@WalterBright created dlang/dmd pull request #13158 "fix Issue 22372 - Loop index incorrectly optimised out for -release -O" fixing this issue:

- fix Issue 22372 - Loop index incorrectly optimised out for -release -O

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

--
October 12, 2021
https://issues.dlang.org/show_bug.cgi?id=22372

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

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

--- Comment #12 from Dlang Bot <dlang-bot@dlang.rocks> ---
dlang/dmd pull request #13158 "fix Issue 22372 - Loop index incorrectly optimised out for -release -O" was merged into master:

- 3e2a24503b338def775a3d65ca756de63a3efd3d by Walter Bright:
  fix Issue 22372 - Loop index incorrectly optimised out for -release -O

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

--
1 2
Next ›   Last »