[Issue 24750] escaping sliced stack arrays not detected
    d-bugmail at puremagic.com 
    d-bugmail at puremagic.com
       
    Sun Sep  8 10:28:08 UTC 2024
    
    
  
https://issues.dlang.org/show_bug.cgi?id=24750
Nick Treleaven <nick at geany.org> changed:
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |nick at geany.org
--- Comment #3 from Nick Treleaven <nick at geany.org> ---
> compiles without complaint.
> The error is detected if -dip1000 is used and the function is marked @safe.
With dmd v2.109.0 (and recent git master) I get:
os/retslice.d(7): Error: scope variable `slice` may not be returned
--
    
    
More information about the Digitalmars-d-bugs
mailing list