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

           Summary: struct invariant + dtor fails to compile (no line
                    number)
           Product: D
           Version: 2.031
          Platform: All
        OS/Version: All
            Status: NEW
          Keywords: rejects-valid
          Severity: regression
          Priority: P3
         Component: DMD
        AssignedTo: nob...@puremagic.com
        ReportedBy: 2kor...@gmail.com


The following is a minimal test-case to reproduce the bug:

module A;

struct A {
    ~this() {
    }

    invariant() {
    }
}

> dmd A
Error: __result = this is not an lvalue

Note that this is a regression since DMD2.030 successfully compiled the code
above.

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

Reply via email to