October 21, 2013
http://d.puremagic.com/issues/show_bug.cgi?id=11317

           Summary: glue.c:1218: virtual unsigned int Type::totym():
                    Assertion `0' failed.
           Product: D
           Version: unspecified
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody@puremagic.com
        ReportedBy: rswhite4@googlemail.com


--- Comment #0 from rswhite4@googlemail.com 2013-10-21 12:55:05 PDT ---
struct Test {
public:
    @property
    auto ref uint length() const pure nothrow {
        return 0;
    }

    @property
    void length(uint len) {

    }
}

void main()
{
    Test t;
    t.length += 2;
}

Throws:
/d259/f777.d(7): Error: constant 0u is not an lvalue
dmd: glue.c:1218: virtual unsigned int Type::totym(): Assertion `0' failed.

with dmd 2.063.2

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