[Issue 11317] New: glue.c:1218: virtual unsigned int Type::totym(): Assertion `0' failed.

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Oct 21 12:55:09 PDT 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 at puremagic.com
        ReportedBy: rswhite4 at googlemail.com


--- Comment #0 from rswhite4 at 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: -------


More information about the Digitalmars-d-bugs mailing list