[Issue 23111] stack-allocated array escapes in @safe code
    d-bugmail at puremagic.com 
    d-bugmail at puremagic.com
       
    Mon May 16 11:35:45 UTC 2022
    
    
  
https://issues.dlang.org/show_bug.cgi?id=23111
Dennis <dkorpel at live.nl> changed:
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |dkorpel at live.nl
         Resolution|---                         |FIXED
--- Comment #1 from Dennis <dkorpel at live.nl> ---
The dip1000 flag was put in place to avoid code breakage. Still allowing slices
to static arrays allocated on the stack in @safe code was a deliberate
decision. This will be fixed by the dip1000 by default transition in 2.101, and
the snippet already doesn't compile anymore on master (though it might be
reduced to a deprecation for this release).
--
    
    
More information about the Digitalmars-d-bugs
mailing list