Opened 6 years ago

Closed 6 years ago

#67 closed defect (fixed)

LValue assignment incorrect error : the return

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

Description

Another bug with Lvalues checks.
The following does not compile :

forall(dtype T)
struct S {
	T * ptr;
};

forall(dtype T | sized(T))
void foo( S(T) & this ) {
	T *& it = this.ptr;
}

Change History (2)

comment:1 Changed 6 years ago by Rob Schluntz

For the time being, rebind seems to work:

  T *& it;
  &it = &this.ptr;

comment:2 Changed 6 years ago by Rob Schluntz <rschlunt@…>

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

In bf7b6015:

Move pointer cast out past address expression [fixes #67]

Note: See TracTickets for help on using tickets.