On Jan 29, 2010, at 11:14 AM, Douglas Gregor wrote: > Author: dgregor > Date: Fri Jan 29 13:14:02 2010 > New Revision: 94826 > > URL: http://llvm.org/viewvc/llvm-project?rev=94826&view=rev > Log: > Fix reference binding of const lvalue references to bit-fields, which > requires a temporary. Previously, we were building an initialization > sequence that bound to the bit-field as if it were a real lvalue. Note > that we previously (and still) diagnose binding of non-const > references to bit-fields, as we should.
Does this also work for opencl vector elements? Something like this: float &x = myfloat4.x; should be invalid, but: float x = myfloat4.x; is ok. Very similar to bitfields, -Chris _______________________________________________ cfe-commits mailing list [email protected] http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits
