Lines Matching defs:Types

12 template<typename... Types>
14 typedef pair<Types..., int> expand_with_pacs; // okay
15 typedef pair<Types, int...> expand_no_packs; // expected-error{{pack expansion does not contain any unexpanded parameter packs}}
16 typedef pair<pair<Types..., int>..., int> expand_with_expanded_nested; // expected-error{{pack expansion does not contain any unexpanded parameter packs}}
21 template<typename ...Types>
25 typedef tuple<pair<Types, OtherTypes>...> type; // expected-error{{pack expansion contains parameter packs 'Types' and 'OtherTypes' that have different lengths (3 vs. 2)}}
41 template<typename T, int N, typename ... Types>
43 : public Types, public T // expected-error{{base type contains unexpanded parameter pack 'Types'}}
48 typedef Types *types_pointer; // expected-error{{declaration type contains unexpanded parameter pack 'Types'}}
51 typedef Types (^block_pointer_1)(int); // expected-error{{declaration type contains unexpanded parameter pack 'Types'}}
52 typedef int (^block_pointer_2)(Types); // expected-error{{declaration type contains unexpanded parameter pack 'Types'}}
55 typedef Types &lvalue_ref; // expected-error{{declaration type contains unexpanded parameter pack 'Types'}}
58 typedef Types &&rvalue_ref; // expected-error{{declaration type contains unexpanded parameter pack 'Types'}}
61 typedef Types TestPPName::* member_pointer_1; // expected-error{{declaration type contains unexpanded parameter pack 'Types'}}
62 typedef int Types::*member_pointer_2; // expected-error{{declaration type contains unexpanded parameter pack 'Types'}}
65 typedef Types constant_array[17]; // expected-error{{declaration type contains unexpanded parameter pack 'Types'}}
68 typedef Types incomplete_array[]; // expected-error{{declaration type contains unexpanded parameter pack 'Types'}}
72 Types variable_array[i]; // expected-error{{declaration type contains unexpanded parameter pack 'Types'}}
76 typedef Types dependent_sized_array[N]; // expected-error{{declaration type contains unexpanded parameter pack 'Types'}}
79 typedef Types dependent_sized_ext_vector __attribute__((ext_vector_type(N))); // expected-error{{declaration type contains unexpanded parameter pack 'Types'}}
84 typedef Types ext_vector __attribute__((ext_vector_type(4))); // expected-error{{declaration type contains unexpanded parameter pack 'Types'}}
87 typedef Types (function_type_1)(int); // expected-error{{declaration type contains unexpanded parameter pack 'Types'}}
88 typedef int (function_type_2)(Types); // expected-error{{declaration type contains unexpanded parameter pack 'Types'}}
96 typedef __typeof__((static_cast<Types>(0))) typeof_expr; // expected-error{{declaration type contains unexpanded parameter pack 'Types'}}
99 typedef __typeof__(Types) typeof_type; // expected-error{{declaration type contains unexpanded parameter pack 'Types'}}
102 typedef decltype((static_cast<Types>(0))) typeof_expr; // expected-error{{declaration type contains unexpanded parameter pack 'Types'}}
109 typedef Types template_type_parm; // expected-error{{declaration type contains unexpanded parameter pack 'Types'}}
114 typedef pair<Types, int> template_specialization; // expected-error{{declaration type contains unexpanded parameter pack 'Types'}}
119 typedef typename Types::type dependent_name; // expected-error{{declaration type contains unexpanded parameter pack 'Types'}}
122 typedef typename Types::template apply<int> dependent_name_1; // expected-error{{declaration type contains unexpanded parameter pack 'Types'}}
123 typedef typename T::template apply<Types> dependent_name_2; // expected-error{{declaration type contains unexpanded parameter pack 'Types'}}
152 template<typename ... Types>
154 f(static_cast<Types>(i)); // expected-error{{expression contains unexpanded parameter pack 'Types'}}
163 template<typename T, typename... Types>
165 struct alignas(Types) TestUnexpandedDecls : T{ // expected-error{{expression contains unexpanded parameter pack 'Types'}}
166 void member_function(Types); // expected-error{{declaration type contains unexpanded parameter pack 'Types'}}
167 void member_function () throw(Types); // expected-error{{exception type contains unexpanded parameter pack 'Types'}}
168 void member_function2() noexcept(Types()); // expected-error{{expression contains unexpanded parameter pack 'Types'}}
169 operator Types() const; // expected-error{{declaration type contains unexpanded parameter pack 'Types'}}
170 Types data_member; // expected-error{{data member type contains unexpanded parameter pack 'Types'}}
171 static Types static_data_member; // expected-error{{declaration type contains unexpanded parameter pack 'Types'}}
172 unsigned bit_field : static_cast<Types>(0); // expected-error{{bit-field size contains unexpanded parameter pack 'Types'}}
173 static_assert(static_cast<Types>(0), "Boom"); // expected-error{{static assertion contains unexpanded parameter pack 'Types'}}
175 enum E0 : Types { // expected-error{{fixed underlying type contains unexpanded parameter pack 'Types'}}
176 EnumValue = static_cast<Types>(0) // expected-error{{enumerator value contains unexpanded parameter pack 'Types'}}
179 using typename Types::type; // expected-error{{using declaration contains unexpanded parameter pack 'Types'}}
180 using Types::value; // expected-error{{using declaration contains unexpanded parameter pack 'Types'}}
181 using T::operator Types; // expected-error{{using declaration contains unexpanded parameter pack 'Types'}}
183 friend class Types::foo; // expected-error{{friend declaration contains unexpanded parameter pack 'Types'}}
184 friend void friend_func(Types); // expected-error{{friend declaration contains unexpanded parameter pack 'Types'}}
185 friend void Types::other_friend_func(int); // expected-error{{friend declaration contains unexpanded parameter pack 'Types'}}
188 T copy_init = static_cast<Types>(0); // expected-error{{initializer contains unexpanded parameter pack 'Types'}}
189 T direct_init(0, static_cast<Types>(0)); // expected-error{{initializer contains unexpanded parameter pack 'Types'}}
190 T list_init = { static_cast<Types>(0) }; // expected-error{{initializer contains unexpanded parameter pack 'Types'}}
193 T in_class_member_init = static_cast<Types>(0); // expected-error{{initializer contains unexpanded parameter pack 'Types'}}
195 Types(static_cast<Types>(0)), // expected-error{{initializer contains unexpanded parameter pack 'Types'}}
196 Types(static_cast<Types>(0))...,
197 in_class_member_init(static_cast<Types>(0)) {} // expected-error{{initializer contains unexpanded parameter pack 'Types'}}
199 void default_function_args(T = static_cast<Types>(0)); // expected-error{{default argument contains unexpanded parameter pack 'Types'}}
201 template<typename = Types*> // expected-error{{default argument contains unexpanded parameter pack 'Types'}}
203 template<int = static_cast<Types>(0)> // expected-error{{default argument contains unexpanded parameter pack 'Types'}}
205 template<template<typename> class = Types::template apply> // expected-error{{default argument contains unexpanded parameter pack 'Types'}}
208 template<Types value> // expected-error{{non-type template parameter type contains unexpanded parameter pack 'Types'}}
212 Types t; // expected-error{{declaration type contains unexpanded parameter pack 'Types'}}
213 for (Types *t = 0; ; ) { } // expected-error{{declaration type contains unexpanded parameter pack 'Types'}}
214 for (; Types *t = 0; ) { } // expected-error{{declaration type contains unexpanded parameter pack 'Types'}}
216 for (Types t : a) { } // expected-error{{declaration type contains unexpanded parameter pack 'Types'}}
217 switch(Types *t = 0) { } // expected-error{{declaration type contains unexpanded parameter pack 'Types'}}
218 while(Types *t = 0) { } // expected-error{{declaration type contains unexpanded parameter pack 'Types'}}
219 if (Types *t = 0) { } // expected-error{{declaration type contains unexpanded parameter pack 'Types'}}
221 } catch (Types*) { // expected-error{{exception type contains unexpanded parameter pack 'Types'}}
229 template<typename ...Types>
230 void f(Types...);
244 template<typename T, typename ...Types>
245 void test_unexpanded_exprs(Types ...values) {
254 x.Types::f(); // expected-error{{expression contains unexpanded parameter pack 'Types'}}
255 x.f<Types>(); // expected-error{{expression contains unexpanded parameter pack 'Types'}}
258 (void)static_cast<Types&>(values); // expected-error{{expression contains unexpanded parameter packs 'Types' and 'values'}}
261 (void)dynamic_cast<Types&>(values); // expected-error{{expression contains unexpanded parameter packs 'Types' and 'values'}}
264 (void)reinterpret_cast<Types&>(values); // expected-error{{expression contains unexpanded parameter packs 'Types' and 'values'}}
267 (void)const_cast<Types&>(values); // expected-error{{expression contains unexpanded parameter packs 'Types' and 'values'}}
270 (void)typeid(Types); // expected-error{{expression contains unexpanded parameter pack 'Types'}}
274 (void)__uuidof(Types); // expected-error{{expression contains unexpanded parameter pack 'Types'}}
280 throw Types(); // expected-error{{expression contains unexpanded parameter pack 'Types'}}
290 (void)Types(); // expected-error{{expression contains unexpanded parameter pack 'Types'}}
298 (void)new Types; // expected-error{{expression contains unexpanded parameter pack 'Types'}}
310 t.~Types(); // expected-error{{expression contains unexpanded parameter pack 'Types'}}
311 t.Types::~T(); // expected-error{{expression contains unexpanded parameter pack 'Types'}}
314 __is_pod(Types); // expected-error{{expression contains unexpanded parameter pack 'Types'}}
317 __is_base_of(Types, T); // expected-error{{expression contains unexpanded parameter pack 'Types'}}
318 __is_base_of(T, Types); // expected-error{{expression contains unexpanded parameter pack 'Types'}}
322 test_unexpanded_exprs<Types>(); // expected-error{{expression contains unexpanded parameter pack 'Types'}}
325 Types::test_unexpanded_exprs(); // expected-error{{expression contains unexpanded parameter pack 'Types'}}
326 T::template test_unexpanded_exprs<Types>(); // expected-error{{expression contains unexpanded parameter pack 'Types'}}
329 Types(5); // expected-error{{expression contains unexpanded parameter pack 'Types'}}
336 // Types refers to the template type parameter pack in scope or a
338 // t.Types::foo();
340 t.template foo<Types>(); // expected-error{{expression contains unexpanded parameter pack 'Types'}}
343 x.f<Types>(); // expected-error{{expression contains unexpanded parameter pack 'Types'}}
367 template<typename ...Types>
368 struct TestUnexpandedDecls<int, Types>; // expected-error{{partial specialization contains unexpanded parameter pack 'Types'}}