Thread overview
[Issue 23145] Stack allocation of scope variables defeats @safe
May 29, 2022
timon.gehr@gmx.ch
May 29, 2022
Walter Bright
[Issue 23145] Stack allocation of scope new variables defeats @safe
May 29, 2022
Walter Bright
May 29, 2022
Dlang Bot
Dec 17, 2022
Iain Buclaw
Feb 09, 2023
Dlang Bot
May 29, 2022
https://issues.dlang.org/show_bug.cgi?id=23145

timon.gehr@gmx.ch changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |wrong-code

--- Comment #1 from timon.gehr@gmx.ch ---
Probably the fix for this is to only stack-allocate if the constructor is `scope`.

--
May 29, 2022
https://issues.dlang.org/show_bug.cgi?id=23145

Walter Bright <bugzilla@digitalmars.com> changed:

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

--- Comment #2 from Walter Bright <bugzilla@digitalmars.com> ---
Marking the C.this constructor as `scope` does indeed detect the error.

--
May 29, 2022
https://issues.dlang.org/show_bug.cgi?id=23145

Walter Bright <bugzilla@digitalmars.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|Stack allocation of scope   |Stack allocation of scope
                   |variables defeats @safe     |new variables defeats @safe

--
May 29, 2022
https://issues.dlang.org/show_bug.cgi?id=23145

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

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

--- Comment #3 from Dlang Bot <dlang-bot@dlang.rocks> ---
@WalterBright created dlang/dmd pull request #14175 "fix Issue 23145 - Stack allocation of scope new variables defeats @safe" fixing this issue:

- fix Issue 23145 - Stack allocation of scope new variables defeats @safe

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

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

Iain Buclaw <ibuclaw@gdcproject.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P1                          |P2

--
February 09, 2023
https://issues.dlang.org/show_bug.cgi?id=23145

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

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

--- Comment #4 from Dlang Bot <dlang-bot@dlang.rocks> ---
dlang/dmd pull request #14175 "fix Issue 23145 - Stack allocation of scope new variables defeats @safe" was merged into master:

- 03027d60f883fbfb1644b86db6b5fc60d7f46a33 by Walter Bright:
  fix Issue 23145 - Stack allocation of scope new variables defeats @safe

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

--