Lines Matching refs:A
8 template<typename> struct A {}; struct
11 A(int(&)[1]) -> A<int>;
12 explicit A(int(&)[2]) -> A<int>;
15 *A(int(&)[3]) -> A<int>; // expected-error {{cannot specify any part of a return type in the declar…
16 &A(int(&)[4]) -> A<int>; // expected-error {{cannot specify any part of a return type in the declar…
17 A(int(&)[5])[3] -> A<int>;
24 (A[3])(int(&)[5][1]) -> A<int>; // expected-error {{'<deduction guide for A>' cannot be the name of…
28 (*A)(int(&)[5][2]) -> A<int>; // expected-error {{'<deduction guide for A>' cannot be the name of a…
29 (&A)(int(&)[5][3]) -> A<int>; // expected-error {{'<deduction guide for A>' cannot be the name of a…
30 (*A(int))(int(&)[5][4]) -> A<int>; // expected-error {{cannot specify any part of a return type in …
33 [[deprecated]] A(int(&)[6]) [[]] -> A<int> [[]];
34 A [[]] (int(&)[7]) -> A<int>;
35 (A)(int(&)[8]) -> A<int>;
38 (A(int(&)[9])) -> A<int>;
44 (A(int(&)[10]) -> A<int>); // expected-error {{trailing return type may not be nested within parent…
47 A(int(&)[11]); // expected-error {{deduction guide declaration without trailing return type}}
50 int A(int) -> A<int>; // expected-error {{function with trailing return type must specify return ty…
55 friend A(int(&)[20]) -> A<int>;
61 typedef A(int(&)[21]) -> A<int>; // expected-error {{deduction guide cannot be declared 'typedef'}} typedef
62 constexpr A(int(&)[22]) -> A<int>; // expected-error {{deduction guide cannot be declared 'constexp…
63 inline A(int(&)[23]) -> A<int>; // expected-error {{deduction guide cannot be declared 'inline'}}
64 static A(int(&)[24]) -> A<int>; // expected-error {{deduction guide cannot be declared 'static'}}
65 thread_local A(int(&)[25]) -> A<int>; // expected-error {{'thread_local' is only allowed on variabl…
66 extern A(int(&)[26]) -> A<int>;
72 mutable A(int(&)[27]) -> A<int>; // expected-error-re {{{{'mutable' cannot be applied to|illegal st…
73 virtual A(int(&)[28]) -> A<int>; // expected-error {{'virtual' can only appear on non-static member…
74 const A(int(&)[31]) -> A<int>; // expected-error {{deduction guide cannot be declared 'const'}}
76 const volatile static constexpr inline A(int(&)[29]) -> A<int>; // expected-error {{deduction guide…
78 A(int(&)[30]) const -> A<int>; // expected-error {{deduction guide cannot have 'const' qualifier}}
81 A(int(&)[40]) -> A<int> {} // expected-error {{deduction guide cannot have a function definition}} in A() function
82 A(int(&)[41]) -> A<int> = default; // expected-error {{deduction guide cannot have a function defin…
83 A(int(&)[42]) -> A<int> = delete; // expected-error {{deduction guide cannot have a function defini…
84 A(int(&)[43]) -> A<int> try {} catch (...) {} // expected-error {{deduction guide cannot have a fun… in A() function