[Issue 21291] Array literal that escapes scope is allocated on stack

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun Oct 4 19:14:32 UTC 2020


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

ag0aep6g <ag0aep6g at gmail.com> changed:

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

--- Comment #1 from ag0aep6g <ag0aep6g at gmail.com> ---
(In reply to Dennis from comment #0)
> It seems to be important that the array literal is in a pure static member
> function, though it might be possible to reduce the example further.

Duplicate of issue 20150? `-preview=dip1000` pretty much doesn't check `pure`
functions at all, at the moment.

--


More information about the Digitalmars-d-bugs mailing list