[Issue 18756] Escaping address of temporary struct field

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Apr 12 19:24:03 UTC 2018


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

greenify <greeenify at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |greeenify at gmail.com

--- Comment #1 from greenify <greeenify at gmail.com> ---
Taking an address is allowed in dip1000 and also @safe 

I don't see any violation of safety in your example. The thing that isn't
allowed is storing the address or returning it (though that is sometimes
allowed when the compiler can guarantee that it will be @safe).

So AFAICT this is invalid?

--


More information about the Digitalmars-d-bugs mailing list