[Issue 20937] std.range.array of a lengthless range with indirection is not @safe

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Aug 16 19:15:51 UTC 2021


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

Ajieskola at gmail.com changed:

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

--- Comment #1 from Ajieskola at 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;
}
```

--


More information about the Digitalmars-d-bugs mailing list