[Issue 17448] Move semantics cause memory corruption and cryptic bugs

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon May 30 14:50:42 UTC 2022


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

--- Comment #46 from Steven Schveighoffer <schveiguy at gmail.com> ---
e.g.:
```d
    struct S {
        S* addr;
        this(int dummy) { this.addr = &this; }
        this(ref const S other) { this.addr = &this; }
        static S create() { return S(1); }
    }
```

--


More information about the Digitalmars-d-bugs mailing list