Home | History | Annotate | Download | only in SemaCXX

Lines Matching refs:Conversion

30 B b0 = 0; // expected-error {{no viable conversion}}
39 namespace Conversion {
70 Y y2 = z; // expected-error {{no viable conversion from 'Z' to 'Y'}}
81 const Y& y6 = z; // expected-error {{no viable conversion from 'Z' to 'const Y'}}
82 const int& y7 = z; // expected-error {{no viable conversion from 'Z' to 'const int'}}
87 // conversion function is not considered.
104 explicit operator bool(); // expected-note {{conversion to integral type 'bool'}}
137 switch (n) {} // expected-error {{switch condition type 'NotBool' requires explicit conversion to 'bool'}} \
156 int direct4(n); // expected-error {{no viable conversion}}
160 const int &direct8(n); // expected-error {{no viable conversion}}
164 int directList4{n}; // expected-error {{no viable conversion}}
168 const int &directList8{n}; // expected-error {{no viable conversion}}
170 bool copy2 = n; // expected-error {{no viable conversion}}
172 int copy4 = n; // expected-error {{no viable conversion}}
174 const bool &copy6 = n; // expected-error {{no viable conversion}}
176 const int &copy8 = n; // expected-error {{no viable conversion}}
178 bool copyList2 = {n}; // expected-error {{no viable conversion}}
180 int copyList4 = {n}; // expected-error {{no viable conversion}}
182 const bool &copyList6 = {n}; // expected-error {{no viable conversion}}
184 const int &copyList8 = {n}; // expected-error {{no viable conversion}}
194 explicit operator int(); // expected-note {{conversion to integral type 'int' declared here}}
201 new int[ni]; // expected-error {{array size expression of type 'NotInt' requires explicit conversion to type 'int'}}
211 explicit operator int*(); // expected-note {{conversion}}
218 delete np; // expected-error {{converting delete expression from type 'NotPtr' to type 'int *' invokes an explicit conversion function}}
248 int *p = new int(s); // expected-error {{no viable conversion}}