Lines Matching full:using
4 template<typename U> using T = int;
5 template<typename U> using T = int;
6 template<typename U> using T = T<U>;
10 …template<typename U> using A = void(int n = 0); // expected-error {{default arguments can only be …
11 …template<typename U> using B = inline void(int n); // expected-error {{type name does not allow fu…
12 …template<typename U> using C = virtual void(int n); // expected-error {{type name does not allow f…
13 …template<typename U> using D = explicit void(int n); // expected-error {{type name does not allow …
14 …template<typename U> using E = void(int n) throw(); // expected-error {{exception specifications a…
15 …template<typename U> using F = void(*)(int n) &&; // expected-error {{pointer to function type can…
16 …template<typename U> using G = __thread void(int n); // expected-error {{type name does not allow …
17 …template<typename U> using H = constexpr int; // expected-error {{type name does not allow constex…
19 template<typename U> using Y = void(int n); // ok
20 template<typename U> using Z = void(int n) &&; // ok
24 …template<typename Z> using ::T = void(int n); // expected-error {{name defined in alias declaratio…
25 …template<typename Z> using operator int = void(int n); // expected-error {{name defined in alias d…
26 …template<typename Z> using typename U = void; // expected-error {{name defined in alias declaratio…
27 …template<typename Z> using typename ::V = void(int n); // expected-error {{name defined in alias d…
28 …template<typename Z> using typename ::operator bool = void(int n); // expected-error {{name define…
32 template<typename Z> using T = int[42]; // ok
35 …template<typename Z> using T = int[n]; // expected-error {{variable length array declaration not a…
38 template<typename Z> using U = int[m]; // expected-note {{previous definition}}
39 template<typename Z> using U = int[42]; // ok
40 …template<typename Z> using U = int; // expected-error {{type alias template redefinition with diff…
45 template<typename Z> using T = int;
50 namespace N { template<typename U> using S = int; }
51 using namespace N;
52 template<typename U> using S = S<U>*; // ok
57 …template<typename Z> using U = T*; // expected-error {{declaration type contains unexpanded parame…
61 template<typename Z> using T1 = int;
62 template<typename Z> using T2 = int[-1]; // expected-error {{array size is negative}}
64 …template<typename Z> using T = int; // expected-error {{declaration of 'T' shadows template parame…
66 template<typename Z> using Z = Z;
71 …template<typename U> using C0 = int; // expected-error {{member 'C0' has the same name as its clas…
74 …template<typename U> using C1 = C1; // expected-error {{member 'C1' has the same name as its class…
77 template<typename U> using C0 = C1; // ok
80 …template<typename U> using f = T; // expected-error {{declaration type contains unexpanded paramet…
83 …template<typename U> using T = int; // expected-error {{declaration of 'T' shadows template parame…
87 …template<typename U> using c = int; // expected-error {{redefinition of 'c' as different kind of s…
89 …template<typename U> using d = d; // expected-error {{redefinition of 'd' as different kind of sym…
92 class c { template<typename U> using C6 = int; }; // ok
97 template<typename T> using X = CtorDtorName;
99 ~X<int>(); // expected-error {{destructor cannot be declared using a type alias}}
103 template<typename Z> using S = struct { int n; }; // expected-error {{cannot be defined}}
104 template<typename Z> using T = class { int n; }; // expected-error {{cannot be defined}}
105 template<typename Z> using U = enum { a, b, c }; // expected-error {{cannot be defined}}
106 …template<typename Z> using V = struct V { int n; }; // expected-error {{'TagName::V' cannot be def…
112 template<typename T> using handler_t = void (*)(T);
116 …template<typename T> using cell = pair<T*, cell<T>*>; // expected-error {{use of undeclared identi…
124 template<typename Z> using U = int; // expected-note {{declared private here}}
129 template<typename Z> using U = int;
135 template<typename Z> using V = void;
142 …template<typename T> template<typename U> using SS = S<T, U>; // expected-error {{extraneous templ…
148 template<> struct enable_if<true> { using type = void; };
152 …template<typename T> using EnableIf = typename enable_if<T::value>::type; // expected-error {{unde…
153 …template<typename T> using DisableIf = typename enable_if<!T::value>::type; // expected-error {{un…
177 using T = X[J];
178 using U = T<I>;