Thread overview
[Issue 20937] std.range.array of a lengthless range with indirection is not @safe
Aug 19, 2021
Dlang Bot
Aug 31, 2021
Dlang Bot
August 16, 2021
https://issues.dlang.org/show_bug.cgi?id=20937

Ajieskola@gmail.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |Ajieskola@gmail.com

--- Comment #1 from Ajieskola@gmail.com ---
Reduced test case:

```
struct S {int* x;}

void main() @safe
{ import std.algorithm, std.array;
  auto result = (new immutable(S)[2]).filter!(v => true).array;
}
```

--
August 17, 2021
https://issues.dlang.org/show_bug.cgi?id=20937

Ajieskola@gmail.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |ASSIGNED
           Assignee|nobody@puremagic.com        |Ajieskola@gmail.com

--- Comment #2 from Ajieskola@gmail.com ---
I have fixed this, but not pushed yet because I have procrastinated with moving out of password-based authentication that GitHub does not accept anymore.

Will push once my authentication from terminal works again.

--
August 19, 2021
https://issues.dlang.org/show_bug.cgi?id=20937

Dlang Bot <dlang-bot@dlang.rocks> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |pull

--- Comment #3 from Dlang Bot <dlang-bot@dlang.rocks> ---
@dukc created dlang/phobos pull request #8202 "fix issue 20937" fixing this issue:

- fix issue 20937 - std.range.array of a lengthless range with indirection is not @safe

https://github.com/dlang/phobos/pull/8202

--
August 31, 2021
https://issues.dlang.org/show_bug.cgi?id=20937

Dlang Bot <dlang-bot@dlang.rocks> changed:

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

--- Comment #4 from Dlang Bot <dlang-bot@dlang.rocks> ---
dlang/phobos pull request #8202 "fix issue 20937 - std.range.array of a lengthless range with indirection is not @safe" was merged into stable:

- c5c559343dc458936aa29f3fa75e23ab86ac717e by Ate Eskola:
  fix issue 20937 - std.range.array of a lengthless range with indirection is
not @safe

https://github.com/dlang/phobos/pull/8202

--