Thread overview
[Issue 23099] DMD generates dangerous code on array literals usage inside functions
May 10, 2022
mhh
May 10, 2022
Luís Ferreira
Dec 17, 2022
Iain Buclaw
May 10, 2022
https://issues.dlang.org/show_bug.cgi?id=23099

mhh <maxhaton@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |maxhaton@gmail.com
           Severity|critical                    |normal

--- Comment #1 from mhh <maxhaton@gmail.com> ---
This has probably been filed before. Can't be bothered to go looking at the moment.

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

--- Comment #2 from Luís Ferreira <contact@lsferreira.net> ---
(In reply to mhh from comment #1)
> This has probably been filed before. Can't be bothered to go looking at the moment.

The only issue I found was https://issues.dlang.org/show_bug.cgi?id=14451 but it is not entirely correlated. static foreach can yield stack variables intentionally. For normal foreach the situation is somewhat different. I expect a static foreach to produce stack space, although could be enhanced.

Maybe it is not "critical", but above "normal" importance.

Somewhat related to https://issues.dlang.org/show_bug.cgi?id=13381 .

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

Iain Buclaw <ibuclaw@gdcproject.org> changed:

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

--
December 13
https://issues.dlang.org/show_bug.cgi?id=23099

--- Comment #3 from dlangBugzillaToGithub <robert.schadek@posteo.de> ---
THIS ISSUE HAS BEEN MOVED TO GITHUB

https://github.com/dlang/dmd/issues/20100

DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB

--