Opened 7 years ago

Closed 7 years ago

#64 closed defect (fixed)

LValue assignment incorrect error

Reported by: Thierry Delisle Owned by: Rob Schluntz <rschlunt@…>
Priority: major Component: cfa-cc
Version: 1.0 Keywords:
Cc:

Description

This code causes an error saying the left operand of an assigment must be an lvalue.

forall(dtype T)
struct Inner {
        T* value;
};
struct Outer {
         Inner(int);
};
void ?=?(Outer & lhs, const Outer & rhs) {
        lhs.value = rhs.value;
}

Change History (1)

comment:1 Changed 7 years ago by Rob Schluntz <rschlunt@…>

Owner: set to Rob Schluntz <rschlunt@…>
Resolution: fixed
Status: newclosed

In 1393df07:

Insert a temporary for dtype-static member expressions that must be C lvalues [fixes #64]

Note: See TracTickets for help on using tickets.