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

Nick Treleaven <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected]

--- Comment #10 from Nick Treleaven <[email protected]> ---
With dmd v2.106.0-rc.1, inside @safe and with -dip1000:

    foo().i = 5; // still allowed
    int* p = &foo().i; // error, address assigned to longer lived variable

Comment #3:

    foo(a[1]); // still allowed, should fail
    foo(b.i); // error, cannot pass rvalue, same for comment #4

--

Reply via email to