[Issue 9689] std.typecons.Proxy breaks with @disable this(this)

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Mar 11 08:29:31 PDT 2013


http://d.puremagic.com/issues/show_bug.cgi?id=9689


Kenji Hara <k.hara.pg at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |rejects-valid


--- Comment #1 from Kenji Hara <k.hara.pg at gmail.com> 2013-03-11 08:29:29 PDT ---
(In reply to comment #0)
That is introduced this commit:
https://github.com/D-Programming-Language/dmd/commit/391addfda30738089ca220f0d9f025e3842deb1f

Simplified test case:

struct B(T)
{
    T val;
    @disable this(this);

    bool opEquals(this X, B)(auto ref B b)
    {
        pragma(msg, "+", X, ", B = ", B, ", ref = ", __traits(isRef, b));
        return this.val == b.val;
        pragma(msg, "-", X, ", B = ", B, ", ref = ", __traits(isRef, b));
    }
}
struct S
{
    B!int num;
}
void main()
{
    B!S b;
}

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list