Closed robsimmons closed 11 years ago
Rob - investigate whether address-of is still necessary in compilation in this case.
Answer: no it does not:
A[3].f = foo(17);
this code first gets the location &(A[3].f), then calculates foo(17), then does the (pure) assignment of the result value into the memory within A[3].f.
Possible resolutions:
Both of these would fix stuff of low priority. Who in the compilers class needs to be notified of this?
Assigned to Frank to think about, Rob can implement either solution (especially the first) once Frank thinks about it.
Decision: pull the trigger on this issue and require condition expressions to have small type.
Done, as of revision r216.
This would allow
instead of the following (equivalent by commutative conversion if y and z have the same type)
This change would completely resolve #10