Custom Query (146 matches)

Filters
 
Or
 
  
 
Columns

Show under each result:


Results (31 - 33 of 146)

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
Ticket Owner Reporter Resolution Summary
#64 Rob Schluntz <rschlunt@…> Thierry Delisle fixed LValue assignment incorrect error
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;
}
#65 Rob Schluntz Rob Schluntz fixed Member expression qualifiers are wrong
Description

This compiles, but shouldn't:

struct S {
  int x;
};

int main() {
  const S s;
  s.x = 0;
}

s.x currently has type int, but should be const int.

#67 Rob Schluntz <rschlunt@…> Thierry Delisle fixed LValue assignment incorrect error : the return
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;
}
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
Note: See TracQuery for help on using queries.