[Issue 17388] [scope] no escape analysis for auto return scope members
    via Digitalmars-d-bugs 
    digitalmars-d-bugs at puremagic.com
       
    Wed Aug  9 17:39:25 PDT 2017
    
    
  
https://issues.dlang.org/show_bug.cgi?id=17388
Walter Bright <bugzilla at digitalmars.com> changed:
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bugzilla at digitalmars.com
--- Comment #1 from Walter Bright <bugzilla at digitalmars.com> ---
This shrinks down a bit to:
struct S {
    int[]         // works
    //auto        // doesn't work
    foo() return @safe {
        return x[];
    }
    int[4] x;
}
@safe int[] f() {
    S s;
    return s.foo();
}
--
    
    
More information about the Digitalmars-d-bugs
mailing list