https://issues.dlang.org/show_bug.cgi?id=23657
Dennis <dkor...@live.nl> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |dkor...@live.nl Resolution|--- |DUPLICATE --- Comment #1 from Dennis <dkor...@live.nl> --- Reduced: ``` import std.algorithm: map; import std.array: array; struct SmallSet { ushort[13] keys; auto items() return { return keys[]; } } public struct RA { SmallSet members() { return SmallSet(); } } RA agent; auto foo() { return agent.members.items.map!(x => x).array; } ``` The problem is that members.items returns a slice to a local variable, which should be okay because you call `array` in the end, but there you hit Issue 23300. *** This issue has been marked as a duplicate of issue 23300 *** --