Lines Matching refs:A
22 struct A { struct
27 A(int);
30 A<-1> a(0);
95 struct A : B<b> { struct
96 explicit(b) A(int) : B<b>(0) {} in A() argument
99 A<true> a(0);
106 struct A { struct
109 explicit(b) A(int, int = 0); // expected-note {{not a candidate}}
114 A<b>::A(int, int) {} in A() function in constructor1::A
118 A<true> a0 = 0; // expected-error {{no viable conversion}} in f()
119 A<true> a1( 0); in f()
120 A<true> && a2 = 0;// expected-error {{could not bind}} in f()
121 A<true> && a3( 0);// expected-error {{could not bind}} in f()
122 A<true> a4{ 0}; in f()
123 A<true> && a5 = { 0};// expected-error {{chosen constructor is explicit}} in f()
124 A<true> && a6{ 0}; in f()
125 A<true> a7 = { 0}; // expected-error {{chosen constructor is explicit in copy-initialization}} in f()
129 a2 = A<true>( 0); in f()
130 a3 = A<true>{ 0}; in f()
132 A<false> c0 = ((short)0); in f()
133 A<false> c1( ((short)0)); in f()
134 A<false> && c2 = ((short)0); in f()
135 A<false> && c3( ((short)0)); in f()
136 A<false> c4{ ((short)0)}; in f()
137 A<false> && c5 = { ((short)0)}; in f()
138 A<false> && c6{ ((short)0)}; in f()
140 A<true> d1( 0, 0); in f()
141 A<true> d2{ 0, 0}; in f()
142 A<true> d3 = { 0, 0}; // expected-error {{chosen constructor is explicit in copy-initialization}} in f()
145 d2 = A<true>( 0, 0); in f()
146 d3 = A<true>{ 0, 0}; in f()
153 struct A { struct
158 A(T2) {} in A() function
163 A<true, int> a0 = 0.0; // expected-error {{no viable conversion}}
164 A<true, int> a1( 0.0);
165 A<true, int> && a2 = 0.0;// expected-error {{could not bind}}
166 A<true, int> && a3( 0.0);// expected-error {{could not bind}}
167 A<true, int> a4{ 0.0};
168 A<true, int> && a5 = { 0.0};// expected-error {{chosen constructor is explicit}}
169 A<true, int> && a6{ 0.0};
170 A<true, int> a7 = { 0.0}; // expected-error {{chosen constructor is explicit in copy-initialization…
172 A<true, int> b0 = 0;
173 A<true, int> b1( 0);
174 A<true, int> && b2 = 0;
175 A<true, int> && b3( 0);
176 A<true, int> b4{ 0};
177 A<true, int> && b5 = { 0};
178 A<true, int> && b6{ 0};
179 A<true, int> b7 = { 0};
181 A<true, double> c0 = 0; // expected-error {{no viable conversion}}
182 A<true, double> c1( 0);
183 A<true, double> && c2 = 0;// expected-error {{could not bind}}
184 A<true, double> && c3( 0);// expected-error {{could not bind}}
185 A<true, double> c4{ 0};
186 A<true, double> && c5 = { 0};// expected-error {{chosen constructor is explicit}}
187 A<true, double> && c6{ 0};
188 A<true, double> c7 = { 0}; // expected-error {{chosen constructor is explicit in copy-initializatio…
195 struct A { struct
199 A(T) {} in A() function
205 A(T) {} in A() function
211 A<true> a0 = 0.0; // expected-error {{no viable conversion}}
212 A<true> a1( 0.0); // expected-error {{no matching constructor}}
213 A<true> a4{ 0.0}; // expected-error {{no matching constructor}}
214 A<true> a7 = { 0.0}; // expected-error {{no matching constructor}}
216 A<true> b0 = 0; // expected-error {{no viable conversion}}
217 A<true> b1( 0);
218 A<true> b4{ 0};
219 A<true> b7 = { 0}; // expected-error {{chosen constructor is explicit}}
221 A<false> c0 = 0;
222 A<false> c1( 0);
223 A<false> c4{ 0};
224 A<false> c7 = { 0};
226 A<true> d0 = true; // expected-error {{no viable conversion}}
227 A<true> d1( true);
228 A<true> d4{ true};
229 A<true> d7 = { true}; // expected-error {{chosen constructor is explicit}}
236 struct A { struct
241 A<a>::operator int() { in operator int()
245 A<true> A_true;
246 A<false> A_false;
248 int ai0 = A<true>(); // expected-error {{no viable conversion}}
249 const int& ai1 = A<true>(); // expected-error {{no viable conversion}}
250 int&& ai3 = A<true>(); // expected-error {{no viable conversion}}
254 int ai01 = {A<true>()}; // expected-error {{no viable conversion}}
255 const int& ai11 = {A<true>()}; // expected-error {{no viable conversion}}
256 int&& ai31 = {A<true>()}; // expected-error {{no viable conversion}}
260 int ae0(A<true>());
261 const int& ae1(A<true>());
262 int&& ae3(A<true>());
266 int bi0 = A<false>();
267 const int& bi1 = A<false>();
268 int&& bi3 = A<false>();
272 int bi01 = {A<false>()};
273 const int& bi11 = {A<false>()};
274 int&& bi31 = {A<false>()};
278 int be0(A<true>());
279 const int& be1(A<true>());
280 int&& be3(A<true>());
291 struct A { struct
299 A<false> A_false;
300 A<true> A_true;
302 int ai0 = A<true>(); // expected-error {{no viable conversion}}
303 const int& ai1 = A<true>(); // expected-error {{no viable conversion}}
304 int&& ai3 = A<true>(); // expected-error {{no viable conversion}}
308 int ae0{A<true>()}; // expected-error {{no viable conversion}}
309 const int& ae1{A<true>()}; // expected-error {{no viable conversion}}
310 int&& ae3{A<true>()}; // expected-error {{no viable conversion}}
314 int ap0((A<true>())); // expected-error {{no viable conversion}}
315 const int& ap1((A<true>())); // expected-error {{no viable conversion}}
316 int&& ap3((A<true>())); // expected-error {{no viable conversion}}
320 B b0 = A<true>(); // expected-error {{no viable conversion}}
321 const B & b1 = A<true>(); // expected-error {{no viable conversion}}
322 B && b3 = A<true>(); // expected-error {{no viable conversion}}
326 B be0(A<true>());
327 const B& be1(A<true>());
328 B&& be3(A<true>());
332 B c0 = A<false>();
333 const B & c1 = A<false>();
334 B && c3 = A<false>();
343 struct A { struct
348 A(Ts...);
355 A<T>::A(Ts ...) {} in A() function in parameter_pack::A
359 A<int> a0 = 0; // expected-error {{no viable conversion}} in f()
360 A<int> a1( 0, 1); in f()
361 A<int> a2{ 0, 1}; in f()
362 A<int> a3 = { 0, 1}; // expected-error {{chosen constructor is explicit}} in f()
367 A<double> b0 = 0; in f()
368 A<double> b1( 0, 1); in f()
369 A<double> b2{ 0, 1}; in f()
370 A<double> b3 = { 0, 1}; in f()
394 struct A { struct
397 …A(typename nondeduced<T1>::type, typename nondeduced<T2>::type, typename nondeduced<B<b>>::type) {} in A() argument
403 A(T1, T2, B<b>) -> A<T1, T2, b>;
408 A a0( 0.0, 1, b_true); // expected-error {{no viable constructor or deduction guide}} in f()
409 A a1{ 0.0, 1, b_true}; // expected-error {{no viable constructor or deduction guide}} in f()
410 A a2 = { 0.0, 1, b_true}; // expected-error {{no viable constructor or deduction guide}} in f()
411 auto a4 = A( 0.0, 1, b_true); // expected-error {{no viable constructor or deduction guide}} in f()
412 auto a5 = A{ 0.0, 1, b_true}; // expected-error {{no viable constructor or deduction guide}} in f()
414 A b0( 0, 1, b_true); in f()
415 A b1{ 0, 1, b_true}; in f()
416 A b2 = { 0, 1, b_true}; // expected-error {{explicit deduction guide for copy-list-initialization}} in f()
417 auto b4 = A( 0, 1, b_true); in f()
418 auto b5 = A{ 0, 1, b_true}; in f()
421 A c0( 0, 1, b_false); in f()
422 A c1{ 0, 1, b_false}; in f()
423 A c2 = { 0, 1, b_false}; in f()
424 auto c4 = A( 0, 1, b_false); in f()
425 auto c5 = A{ 0, 1, b_false}; in f()
435 struct A { struct
439 A(T1, T2) {} in A() argument
445 A(T1, T2) -> A<!is_same<int, T2>::value>;
449 A<b> v();
453 A a0( 0, 1); in f()
454 A a1{ 0, 1}; in f()
455 A a2 = { 0, 1}; in f()
456 auto a4 = A( 0, 1); in f()
457 auto a5 = A{ 0, 1}; in f()
461 A b0( 0.0, 1); in f()
462 A b1{ 0.0, 1}; in f()
463 A b2 = { 0.0, 1}; // expected-error {{explicit deduction guide for copy-list-initialization}} in f()
464 auto b4 = A( 0.0, 1); in f()
465 auto b5 = A{ 0.0, 1}; in f()
467 A c0( 0, 1.0); in f()
468 A c1{ 0, 1.0}; in f()
469 A c2 = { 0, 1.0}; // expected-error {{chosen constructor is explicit}} in f()
470 auto c4 = A( 0, 1.0); in f()
471 auto c5 = A{ 0, 1.0}; in f()
475 A d0( 0.0, 1.0); in f()
476 A d1{ 0.0, 1.0}; in f()
477 A d2 = { 0.0, 1.0}; // expected-error {{explicit deduction guide for copy-list-initialization}} in f()
478 auto d4 = A( 0.0, 1.0); in f()
479 auto d5 = A{ 0.0, 1.0}; in f()
488 struct A { struct
494 A<b>::operator bool() { return false; } in operator bool()
501 void f(A<true> a, B b) { in f()
505 void f1(A<false> a, B b) { in f1()
678 struct A { struct
681 A(T1 = 0, T2 = 0) {} in A() argument
686 A a0 = 0;
687 A a1(0, 0);
688 A a2{0, 0};
689 A a3 = {0, 0};
691 A b0 = 0.0; // expected-error {{no viable constructor or deduction guide}}
692 A b1(0.0, 0.0);
693 A b2{0.0, 0.0};
694 A b3 = {0.0, 0.0};
696 A b4 = {0.0, 0}; // expected-error {{explicit constructor}}
699 explicit A(T1, T2) -> A<T1, T2>;
702 A c0 = 0;
703 A c1(0, 0);
704 A c2{0, 0};
705 A c3 = {0, 0};// expected-error {{explicit deduction guide}}
707 A d0 = 0.0; // expected-error {{no viable constructor or deduction guide}}
708 A d1(0, 0);
709 A d2{0, 0};
710 A d3 = {0.0, 0.0};// expected-error {{explicit deduction guide}}