Home | History | Annotate | Download | only in temp.variadic

Lines Matching full:parameter

6 // A parameter pack whose name appears within the pattern of a pack
8 // name of a parameter pack is only expanded by the innermost
10 // name one or more parameter packs that are not expanded by a nested
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}}
19 // All of the parameter packs expanded by a pack expansion shall have
25 typedef tuple<pair<Types, OtherTypes>...> type; // expected-error{{pack expansion contains parameter packs 'Types' and 'OtherTypes' that have different lengths (3 vs. 2)}}
37 // An appearance of a name of a parameter pack that is not expanded is
40 // Test for unexpanded parameter packs in each of the type nodes.
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'}}
130 // FIXME: Test for unexpanded parameter packs in each of the expression nodes.
135 Values; // expected-error{{expression contains unexpanded parameter pack 'Values'}}
141 (Values); // expected-error{{expression contains unexpanded parameter pack 'Values'}}
143 -Values; // expected-error{{expression contains unexpanded parameter pack 'Values'}}
148 __builtin_offsetof(OffsetMe, array[Values]); // expected-error{{expression contains unexpanded parameter pack 'Values'}}
154 f(static_cast<Types>(i)); // expected-error{{expression contains unexpanded parameter pack 'Types'}}
159 typedef tuple<typename Meta<T>::type> type; // expected-error{{declaration type contains unexpanded parameter pack 'Meta'}}
162 // Test for unexpanded parameter packs in declarations.
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 operator Types() const; // expected-error{{declaration type contains unexpanded parameter pack 'Types'}}
169 Types data_member; // expected-error{{data member type contains unexpanded parameter pack 'Types'}}
170 static Types static_data_member; // expected-error{{declaration type contains unexpanded parameter pack 'Types'}}
171 unsigned bit_field : static_cast<Types>(0); // expected-error{{bit-field size contains unexpanded parameter pack 'Types'}}
172 static_assert(static_cast<Types>(0), "Boom"); // expected-error{{static assertion contains unexpanded parameter pack 'Types'}}
174 enum E0 : Types { // expected-error{{fixed underlying type contains unexpanded parameter pack 'Types'}}
175 EnumValue = static_cast<Types>(0) // expected-error{{enumerator value contains unexpanded parameter pack 'Types'}}
178 using typename Types::type; // expected-error{{using declaration contains unexpanded parameter pack 'Types'}}
179 using Types::value; // expected-error{{using declaration contains unexpanded parameter pack 'Types'}}
180 using T::operator Types; // expected-error{{using declaration contains unexpanded parameter pack 'Types'}}
182 friend class Types::foo; // expected-error{{friend declaration contains unexpanded parameter pack 'Types'}}
183 friend void friend_func(Types); // expected-error{{friend declaration contains unexpanded parameter pack 'Types'}}
184 friend void Types::other_friend_func(int); // expected-error{{friend declaration contains unexpanded parameter pack 'Types'}}
187 T copy_init = static_cast<Types>(0); // expected-error{{initializer contains unexpanded parameter pack 'Types'}}
188 T direct_init(0, static_cast<Types>(0)); // expected-error{{initializer contains unexpanded parameter pack 'Types'}}
189 T list_init = { static_cast<Types>(0) }; // expected-error{{initializer contains unexpanded parameter pack 'Types'}}
192 T in_class_member_init = static_cast<Types>(0); // expected-error{{initializer contains unexpanded parameter pack 'Types'}}
194 Types(static_cast<Types>(0)), // expected-error{{initializer contains unexpanded parameter pack 'Types'}}
196 in_class_member_init(static_cast<Types>(0)) {} // expected-error{{initializer contains unexpanded parameter pack 'Types'}}
198 void default_function_args(T = static_cast<Types>(0)); // expected-error{{default argument contains unexpanded parameter pack 'Types'}}
200 template<typename = Types*> // expected-error{{default argument contains unexpanded parameter pack 'Types'}}
202 template<int = static_cast<Types>(0)> // expected-error{{default argument contains unexpanded parameter pack 'Types'}}
204 template<template<typename> class = Types::template apply> // expected-error{{default argument contains unexpanded parameter pack 'Types'}}
207 template<Types value> // expected-error{{non-type template parameter type contains unexpanded parameter pack 'Types'}}
211 Types t; // expected-error{{declaration type contains unexpanded parameter pack 'Types'}}
212 for (Types *t = 0; ; ) { } // expected-error{{declaration type contains unexpanded parameter pack 'Types'}}
213 for (; Types *t = 0; ) { } // expected-error{{declaration type contains unexpanded parameter pack 'Types'}}
215 for (Types t : a) { } // expected-error{{declaration type contains unexpanded parameter pack 'Types'}}
216 switch(Types *t = 0) { } // expected-error{{declaration type contains unexpanded parameter pack 'Types'}}
217 while(Types *t = 0) { } // expected-error{{declaration type contains unexpanded parameter pack 'Types'}}
218 if (Types *t = 0) { } // expected-error{{declaration type contains unexpanded parameter pack 'Types'}}
220 } catch (Types*) { // expected-error{{exception type contains unexpanded parameter pack 'Types'}}
225 // FIXME: Test for unexpanded parameter packs in each of the statements.
246 (void)(values + 0); // expected-error{{expression contains unexpanded parameter pack 'values'}}
247 (void)(0 + values); // expected-error{{expression contains unexpanded parameter pack 'values'}}
250 values.f(); // expected-error{{expression contains unexpanded parameter pack 'values'}}
252 x.f(values); // expected-error{{expression contains unexpanded parameter pack 'values'}}
253 x.Types::f(); // expected-error{{expression contains unexpanded parameter pack 'Types'}}
254 x.f<Types>(); // expected-error{{expression contains unexpanded parameter pack 'Types'}}
257 (void)static_cast<Types&>(values); // expected-error{{expression contains unexpanded parameter packs 'Types' and 'values'}}
260 (void)dynamic_cast<Types&>(values); // expected-error{{expression contains unexpanded parameter packs 'Types' and 'values'}}
263 (void)reinterpret_cast<Types&>(values); // expected-error{{expression contains unexpanded parameter packs 'Types' and 'values'}}
266 (void)const_cast<Types&>(values); // expected-error{{expression contains unexpanded parameter packs 'Types' and 'values'}}
269 (void)typeid(Types); // expected-error{{expression contains unexpanded parameter pack 'Types'}}
270 (void)typeid(values); // expected-error{{expression contains unexpanded parameter pack 'values'}}
273 (void)__uuidof(Types); // expected-error{{expression contains unexpanded parameter pack 'Types'}}
274 (void)__uuidof(values); // expected-error{{expression contains unexpanded parameter pack 'values'}}
279 throw Types(); // expected-error{{expression contains unexpanded parameter pack 'Types'}}
280 throw values; // expected-error{{expression contains unexpanded parameter pack 'values'}}
289 (void)Types(); // expected-error{{expression contains unexpanded parameter pack 'Types'}}
292 (void)X(values); // expected-error{{expression contains unexpanded parameter pack 'values'}}
297 (void)new Types; // expected-error{{expression contains unexpanded parameter pack 'Types'}}
298 (void)new X(values); // expected-error{{expression contains unexpanded parameter pack 'values'}}
299 (void)new (values) X(values); // expected-error{{expression contains unexpanded parameter pack 'values'}}
300 (void)new X [values]; // expected-error{{expression contains unexpanded parameter pack 'values'}}
303 delete values; // expected-error{{expression contains unexpanded parameter pack 'values'}}
304 delete [] values; // expected-error{{expression contains unexpanded parameter pack 'values'}}
308 values.~T(); // expected-error{{expression contains unexpanded parameter pack 'values'}}
309 t.~Types(); // expected-error{{expression contains unexpanded parameter pack 'Types'}}
310 t.Types::~T(); // expected-error{{expression contains unexpanded parameter pack 'Types'}}
313 __is_pod(Types); // expected-error{{expression contains unexpanded parameter pack 'Types'}}
316 __is_base_of(Types, T); // expected-error{{expression contains unexpanded parameter pack 'Types'}}
317 __is_base_of(T, Types); // expected-error{{expression contains unexpanded parameter pack 'Types'}}
320 test_unexpanded_exprs(values); // expected-error{{expression contains unexpanded parameter pack 'values'}}
321 test_unexpanded_exprs<Types>(); // expected-error{{expression contains unexpanded parameter pack 'Types'}}
324 Types::test_unexpanded_exprs(); // expected-error{{expression contains unexpanded parameter pack 'Types'}}
325 parameter pack 'Types'}}
328 Types(5); // expected-error{{expression contains unexpanded parameter pack 'Types'}}
331 values.foo(); // expected-error{{expression contains unexpanded parameter pack 'values'}}
332 t.foo(values); // expected-error{{expression contains unexpanded parameter pack 'values'}}
335 // Types refers to the template type parameter pack in scope or a
339 t.template foo<Types>(); // expected-error{{expression contains unexpanded parameter pack 'Types'}}
342 x.f<Types>(); // expected-error{{expression contains unexpanded parameter pack 'Types'}}
343 x.f(values); // expected-error{{expression contains unexpanded parameter pack 'values'}}
346 noexcept(values); // expected-error{{expression contains unexpanded parameter pack 'values'}}
353 for (auto t : values) { } // expected-error{{expression contains unexpanded parameter pack 'values'}}
355 switch (values) { } // expected-error{{expression contains unexpanded parameter pack 'values'}}
357 do { } while (values); // expected-error{{expression contains unexpanded parameter pack 'values'}}
360 goto *values; // expected-error{{expression contains unexpanded parameter pack 'values'}}
362 void f(int arg = values); // expected-error{{default argument contains unexpanded parameter pack 'values'}}
365 // Test unexpanded parameter packs in partial specializations.
367 struct TestUnexpandedDecls<int, Types>; // expected-error{{partial specialization contains unexpanded parameter pack 'Types'}}
370 // parameter packs.
377 typedef pair<OuterTypes, InnerTypes>* types; // expected-error{{declaration type contains unexpanded parameter packs 'OuterTypes' and 'InnerTypes'}}
381 typedef pair<pair<VeryInnerTypes, OuterTypes>, pair<InnerTypes, OuterTypes> > types; // expected-error{{declaration type contains unexpanded parameter packs 'VeryInnerTypes', 'OuterTypes', ...}}
393 typedef Tuple<Pair<Args1, Args2> ... > type; // expected-error{{pack expansion contains parameter packs 'Args1' and 'Args2' that have different lengths (1 vs. 2)}}
408 f(5 ...); // expected-error{{pack expansion does not contain any unexpanded parameter packs}}
409 f(args); // expected-error{{expression contains unexpanded parameter pack 'args'}}