[Issue 12226] functions can return local stack-allocated objects by reference

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Sep 8 12:56:08 UTC 2021


Dennis <dkorpel at live.nl> changed:

           What    |Removed                     |Added
             Status|NEW                         |RESOLVED
                 CC|                            |dkorpel at live.nl
         Resolution|---                         |WORKSFORME

--- Comment #2 from Dennis <dkorpel at live.nl> ---
The example doesn't compile today because it's passing an rvalue to a ref
parameter, but returning ref variables is now caught by dip25.


More information about the Digitalmars-d-bugs mailing list