[Issue 17213] [REG2.072] take address of ref return value @safe

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Jan 20 18:18:44 UTC 2018


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

Carsten Blüggel <chilli at posteo.net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |chilli at posteo.net

--- Comment #5 from Carsten Blüggel <chilli at posteo.net> ---
(In reply to Johan Engelen from comment #4)
> So not a compiler bug then?

My understanding is, that Walter Bright's comment is comprehensive, replying to
the issue and (indirectly) to other points raised here, in my words:

- The language doesn't allow to take the address of a 'ref' in @safe code,
enforced since 2.072 (as always, manual safety check and @trusted is possible).
- unrelated to DIP1000

Did I miss anything or why is this issue still an open regression?

--


More information about the Digitalmars-d-bugs mailing list