Home | History | Annotate | Download | only in SemaCXX

Lines Matching full:reference

47   double& rd2 = 2.0; // expected-error{{non-const lvalue reference to type 'double' cannot bind to a temporary of type 'double'}}
49 double& rd3 = i; // expected-error{{non-const lvalue reference to type 'double' cannot bind to a value of unrelated type 'int'}}
57 const int& r = cvi; // expected-error{{binding of reference to type 'const int' to a value of type 'const volatile int' drops qualifiers}}
62 int& yo; // expected-error{{declaration of reference variable 'yo' requires an initializer}}
66 int& not_initialized_error; // expected-error{{declaration of reference variable 'not_initialized_error' requires an initializer}}
70 int& okay; // expected-note{{reference member 'okay' will never be initialized}}
80 void test8(int& const,// expected-error{{'const' qualifier may not be applied to a reference}}
82 void&, // expected-error{{cannot form a reference to 'void'}}
83 int& &) // expected-error{{type name declared as a reference to a reference}}
86 typedef intref& intrefref; // C++ DR 106: reference collapsing
103 string &s = getInput(); // expected-error{{lvalue reference}}
111 int &a = v[0]; // expected-error{{non-const reference cannot bind to vector element}}
115 int &c = ev.x; // expected-error{{non-const reference cannot bind to vector element}}
139 const int &do_not_crash = do_not_crash; // expected-warning{{reference 'do_not_crash' is not yet bound to a value when used within its own initialization}}