[Issue 23739] Can't return by ref from opApply iteration
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Mon Feb 27 19:47:58 UTC 2023
https://issues.dlang.org/show_bug.cgi?id=23739
timon.gehr at gmx.ch changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |INVALID
--- Comment #3 from timon.gehr at gmx.ch ---
(In reply to kinke from comment #2)
> The 1st testcase just requires a `foreach (ref x; s)`, which I think is
> consistent.
>
> The 2nd one never sets `S.x` before dereferencing it, so adding `ref` there
> still causes a segfault.
Oops. Indeed I screwed up when trying to create a reduced test case... My bad.
Thanks!
--
More information about the Digitalmars-d-bugs
mailing list