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

Carsten Blüggel <[email protected]> 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 <[email protected]> ---
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.

--

Reply via email to