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

ag0aep6g <ag0ae...@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|FIXED                       |---

--- Comment #6 from ag0aep6g <ag0ae...@gmail.com> ---
(In reply to Walter Bright from comment #4)
> https://github.com/dlang/dmd/pull/8030

That seems to have fixed this snippet from comment #2:

----
string* f() @safe
{
    scope string*[] ls;
    return ls[0];
}
----

But the original test case still fails:

----
void main() @safe
{
    string foo = "foo";
    scope string*[] ls;
    ls ~= &foo; /* Error. But this works: ls = ls ~ &foo; */
}
----

Looks like the actual issue hasn't been fixed. Reopening.

--

Reply via email to