[Issue 17213] [REG2.072] take address of ref return value @safe
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Tue Apr 11 21:45:42 PDT 2017
https://issues.dlang.org/show_bug.cgi?id=17213
--- Comment #3 from Walter Bright <bugzilla at digitalmars.com> ---
It's never been legal to take the address of a 'ref' in @safe code - it's a
compiler bug that that was ever allowed. The compiler will allow it if bar() is
marked as @trusted.
--
More information about the Digitalmars-d-bugs
mailing list