[Issue 22619] [REG2.098.1] Nullable regression introduced by new copy ctor

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Jan 10 11:07:17 UTC 2022


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

elronnd at elronnd.net changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
          Component|phobos                      |dmd

--- Comment #3 from elronnd at elronnd.net ---
Further reduced:

struct W1 {
        int x;
        this(ref inout W1 rhs) inout { this.x = rhs.x; }
}

inout(W1) f(inout W1 x) { return x; }
void g(W1 x) {
        auto r = f(x);
}


Something is going wrong around expressionsem.d:2443 (the store to tret is
clearly dead).

--


More information about the Digitalmars-d-bugs mailing list