[Issue 18637] [scope][DIP1000] "copying & i into allocated memory escapes a reference to local variable i" where it's inappropriate
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Wed Mar 21 05:35:24 UTC 2018
https://issues.dlang.org/show_bug.cgi?id=18637
Carsten Blüggel <chilli at posteo.net> changed:
What |Removed |Added
----------------------------------------------------------------------------
Summary|[scope][DIP1000] "Error: |[scope][DIP1000] "copying &
|returning & i escapes a |i into allocated memory
|reference to local variable |escapes a reference to
|i" where it's inappropriate |local variable i" where
| |it's inappropriate
--- Comment #2 from Carsten Blüggel <chilli at posteo.net> ---
Since
https://github.com/dlang/dmd/commit/ce08cffe71911e86d8adfb241ff4d4e63136db8c
the error message is now:
std/exception.d(1238): Error: copying & i into allocated memory escapes a
reference to local variable i
Yes, there is "copying & i into allocated memory", but nothing that makes bad
use of it.
--
More information about the Digitalmars-d-bugs
mailing list