[Issue 1259] New: Inline build triggers an illegal error msg "Error: S() is not an lvalue"

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Jun 6 06:07:34 PDT 2007


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

           Summary: Inline build triggers an illegal error msg "Error: S()
                    is not an lvalue"
           Product: D
           Version: 1.015
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: bugzilla at digitalmars.com
        ReportedBy: onlystupidspamhere at yahoo.se


Code:

struct S(T...) {
  S opMul_r(real r) { return S(); }
  S!(1) opDiv(R)(R r) { return S!(1)(); }
}

void main() {
  S!(1) a;
  S!(0) b;
  auto c = 1 * a / b;
}

---

dmd bug.d         -> compiles fine
dmd -inline bug.d -> bug.d(2): Error: S() is not an lvalue


-- 



More information about the Digitalmars-d-bugs mailing list