[Issue 20505] [DIP1000] Static array allows to escape references to stack variables
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sat Mar 21 07:02:09 UTC 2020
https://issues.dlang.org/show_bug.cgi?id=20505
--- Comment #1 from Walter Bright <bugzilla at digitalmars.com> ---
The problem is the line `foo(arr)` where `scope char[][2] arr` is converted to
`scope char[][]`. This conversion should not be allowed, as it loses the
scope-ness of the second level of indirection.
--
More information about the Digitalmars-d-bugs
mailing list