Home | History | Annotate | Download | only in dcl.init.ref

Lines Matching refs:lvalue

7 template<typename T> T& lvalue();
25 // - is an xvalue, class prvalue, array prvalue or function lvalue
40 // function lvalue case
45 // an xvalue, class prvalue, or function lvalue of type "cv3
57 // function lvalue
62 // conversion sequence includes an lvalue-to-rvalue conversion, the
106 double& rd2 = 2.0; // expected-error{{non-const lvalue reference to type 'double' cannot bind to a temporary of type 'double'}}
108 double& rd3 = i; // expected-error{{non-const lvalue reference to type 'double' cannot bind to a value of unrelated type 'int'}}
129 double&& rrd2 = d; // expected-error{{rvalue reference to type 'double' cannot bind to lvalue of type 'double'}}
199 X &&f0(X &x) { return x; } // expected-error{{rvalue reference to type 'rdar13278115::X' cannot bind to lvalue of type 'rdar13278115::X'}}
200 X &&f1(Y &y) { return y; } // expected-error{{rvalue reference to type 'rdar13278115::X' cannot bind to lvalue of type 'rdar13278115::Y'}}
201 const X &&f2(Y &y) { return y; } // expected-error{{rvalue reference to type 'const rdar13278115::X' cannot bind to lvalue of type 'rdar13278115::Y'}}
216 int & ir1 = (lvalue<IntBitfield>().i); // expected-error{{non-const reference cannot bind to bit-field 'i'}}
217 int & ir2 = (xvalue<IntBitfield>().i); // expected-error{{non-const lvalue reference to type 'int' cannot bind to a temporary of type 'int'}}
219 int && ir4 = move(lvalue<IntBitfield>()).i; // no-warning
221 volatile int & vir1 = (lvalue<IntBitfield>().i); // expected-error{{non-const reference cannot bind to bit-field 'i'}}
222 volatile int & vir2 = (xvalue<IntBitfield>().i); // expected-error{{volatile lvalue reference to type 'volatile int' cannot bind to a temporary of type 'int'}}
224 volatile int && vir4 = move(lvalue<IntBitfield>()).i; // no-warning
226 const int & cir1 = (lvalue<IntBitfield>().i); // no-warning
229 const int && cir4 = move(lvalue<IntBitfield>()).i; // no-warning
231 const volatile int & cvir1 = (lvalue<IntBitfield>().i); // expected-error{{non-const reference cannot bind to bit-field 'i'}}
232 const volatile int & cvir2 = (xvalue<IntBitfield>().i); // expected-error{{volatile lvalue reference to type 'const volatile int' cannot bind to a temporary of type 'int'}}
234 const volatile int && cvir4 = move(lvalue<IntBitfield>()).i; // no-warning