[Issue 20149] [DIP1000] Local data escapes `inout` method if not decorated with `return`
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sun Mar 15 11:06:34 UTC 2020
https://issues.dlang.org/show_bug.cgi?id=20149
Rainer Schuetze <r.sagitario at gmx.de> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |r.sagitario at gmx.de
--- Comment #23 from Rainer Schuetze <r.sagitario at gmx.de> ---
(In reply to Walter Bright from comment #22)
> 1. how are you compiling it?
I guess with -preview=dip1000
> 2. what do you expect to happen compared with what does happen?
> (I compile it and no errors are emitted)
This is the described problem. It should produce an error, a pointer to stack
allocated memory is escaping.
--
More information about the Digitalmars-d-bugs
mailing list