[Issue 23739] Can't return by ref from opApply iteration
    d-bugmail at puremagic.com 
    d-bugmail at puremagic.com
       
    Sat Feb 25 14:28:28 UTC 2023
    
    
  
https://issues.dlang.org/show_bug.cgi?id=23739
kinke <kinke at gmx.net> changed:
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |kinke at gmx.net
--- Comment #2 from kinke <kinke at gmx.net> ---
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.
--
    
    
More information about the Digitalmars-d-bugs
mailing list