[Issue 23099] DMD generates dangerous code on array literals usage inside functions

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue May 10 01:58:47 UTC 2022


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

--- Comment #2 from Luís Ferreira <contact at 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 .

--


More information about the Digitalmars-d-bugs mailing list