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 …pand_no_packs; // expected-error{{pack expansion does not contain any unexpanded parameter packs}}
16 …xpanded_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 …Types, OtherTypes>...> type; // expected-error{{pack expansion contains parameter packs 'Types' an…
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 pa…
51 …k_pointer_1)(int); // expected-error{{declaration type contains unexpanded parameter pack 'Types'}}
52 …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 …
58 …typedef Types &&rvalue_ref; // expected-error{{declaration type contains unexpanded parameter pack…
61 … member_pointer_1; // expected-error{{declaration type contains unexpanded parameter pack 'Types'}}
62 …member_pointer_2; // expected-error{{declaration type contains unexpanded parameter pack 'Types'}}
65 …nstant_array[17]; // expected-error{{declaration type contains unexpanded parameter pack 'Types'}}
68 …complete_array[]; // expected-error{{declaration type contains unexpanded parameter pack 'Types'}}
72 …Types variable_array[i]; // expected-error{{declaration type contains unexpanded parameter pack 'T… in f()
76 …t_sized_array[N]; // expected-error{{declaration type contains unexpanded parameter pack 'Types'}}
79 …vector_type(N))); // expected-error{{declaration type contains unexpanded parameter pack 'Types'}}
84 …vector_type(4))); // expected-error{{declaration type contains unexpanded parameter pack 'Types'}}
87 …ion_type_1)(int); // expected-error{{declaration type contains unexpanded parameter pack 'Types'}}
88 …n_type_2)(Types); // expected-error{{declaration type contains unexpanded parameter pack 'Types'}}
96 …0))) typeof_expr; // expected-error{{declaration type contains unexpanded parameter pack 'Types'}}
99 …es) typeof_type; // expected-error{{declaration type contains unexpanded parameter pack 'Types'}}
102 …0))) typeof_expr; // expected-error{{declaration type contains unexpanded parameter pack 'Types'}}
109 …mplate_type_parm; // expected-error{{declaration type contains unexpanded parameter pack 'Types'}}
114 …e_specialization; // expected-error{{declaration type contains unexpanded parameter pack 'Types'}}
119 …e dependent_name; // expected-error{{declaration type contains unexpanded parameter pack 'Types'}}
122 …dependent_name_1; // expected-error{{declaration type contains unexpanded parameter pack 'Types'}}
123 …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'}} in test_unexpanded_in_exprs()
141 (Values); // expected-error{{expression contains unexpanded parameter pack 'Values'}} in test_unexpanded_in_exprs()
143 -Values; // expected-error{{expression contains unexpanded parameter pack 'Values'}} in test_unexpanded_in_exprs()
148 …fsetMe, array[Values]); // expected-error{{expression contains unexpanded parameter pack 'Values'}} in test_unexpanded_in_exprs()
154 …f(static_cast<Types>(i)); // expected-error{{expression contains unexpanded parameter pack 'Types'… in TestPPNameFunc()
159 …eta<T>::type> type; // expected-error{{declaration type contains unexpanded parameter pack 'Meta'}}
162 // Test for unexpanded parameter packs in declarations.
165 …TestUnexpandedDecls : T{ // expected-error{{expression contains unexpanded parameter pack 'Types'}}
166 …void member_function(Types); // expected-error{{declaration type contains unexpanded parameter pa…
167 …ion () throw(Types); // expected-error{{exception type contains unexpanded parameter pack 'Types'}}
168 …on2() noexcept(Types()); // expected-error{{expression contains unexpanded parameter pack 'Types'}}
169 …operator Types() const; // expected-error{{declaration type contains unexpanded parameter pack 'Ty…
170 …Types data_member; // expected-error{{data member type contains unexpanded parameter pack 'Types'…
171 …tatic_data_member; // expected-error{{declaration type contains unexpanded parameter pack 'Types'}}
172 …tic_cast<Types>(0); // expected-error{{bit-field size contains unexpanded parameter pack 'Types'}}
173 …ypes>(0), "Boom"); // expected-error{{static assertion contains unexpanded parameter pack 'Types'}}
175 …enum E0 : Types { // expected-error{{fixed underlying type contains unexpanded parameter pack 'Ty…
176 …tic_cast<Types>(0) // expected-error{{enumerator value contains unexpanded parameter pack 'Types'}}
179 …using typename Types::type; // expected-error{{using declaration contains unexpanded parameter pac…
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 '…
183 …friend class Types::foo; // expected-error{{friend declaration contains unexpanded parameter pack …
184 …end_func(Types); // expected-error{{friend declaration contains unexpanded parameter pack 'Types'}}
185 …riend_func(int); // expected-error{{friend declaration contains unexpanded parameter pack 'Types'}}
188 … static_cast<Types>(0); // expected-error{{initializer contains unexpanded parameter pack 'Types'}} in test_initializers()
189 …static_cast<Types>(0)); // expected-error{{initializer contains unexpanded parameter pack 'Types'}} in test_initializers()
190 …tatic_cast<Types>(0) }; // expected-error{{initializer contains unexpanded parameter pack 'Types'}} in test_initializers()
193 … 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 'T… in TestUnexpandedDecls()
197 …atic_cast<Types>(0)) {} // expected-error{{initializer contains unexpanded parameter pack 'Types'}} in TestUnexpandedDecls()
199 …c_cast<Types>(0)); // expected-error{{default argument contains unexpanded parameter pack 'Types'}}
201 …template<typename = Types*> // expected-error{{default argument contains unexpanded parameter pack…
203 …ic_cast<Types>(0)> // expected-error{{default argument contains unexpanded parameter pack 'Types'}}
205 …s::template apply> // expected-error{{default argument contains unexpanded parameter pack 'Types'}}
208 …ate<Types value> // expected-error{{non-type template parameter type contains unexpanded parameter…
212 Types t; // expected-error{{declaration type contains unexpanded parameter pack 'Types'}} in decls_in_stmts()
213 …for (Types *t = 0; ; ) { } // expected-error{{declaration type contains unexpanded parameter pack … in decls_in_stmts()
214 …for (; Types *t = 0; ) { } // expected-error{{declaration type contains unexpanded parameter pack … in decls_in_stmts()
216 …for (Types t : a) { } // expected-error{{declaration type contains unexpanded parameter pack 'Type… in decls_in_stmts()
217 …switch(Types *t = 0) { } // expected-error{{declaration type contains unexpanded parameter pack 'T… in decls_in_stmts()
218 …while(Types *t = 0) { } // expected-error{{declaration type contains unexpanded parameter pack 'Ty… in decls_in_stmts()
219 …if (Types *t = 0) { } // expected-error{{declaration type contains unexpanded parameter pack 'Type… in decls_in_stmts()
221 … } catch (Types*) { // expected-error{{exception type contains unexpanded parameter pack 'Types'}} in decls_in_stmts()
226 // FIXME: Test for unexpanded parameter packs in each of the statements.
247 (void)(values + 0); // expected-error{{expression contains unexpanded parameter pack 'values'}} in test_unexpanded_exprs()
248 (void)(0 + values); // expected-error{{expression contains unexpanded parameter pack 'values'}} in test_unexpanded_exprs()
251 values.f(); // expected-error{{expression contains unexpanded parameter pack 'values'}} in test_unexpanded_exprs()
253 x.f(values); // expected-error{{expression contains unexpanded parameter pack 'values'}} in test_unexpanded_exprs()
254 x.Types::f(); // expected-error{{expression contains unexpanded parameter pack 'Types'}} in test_unexpanded_exprs()
255 x.f<Types>(); // expected-error{{expression contains unexpanded parameter pack 'Types'}} in test_unexpanded_exprs()
258 …(void)static_cast<Types&>(values); // expected-error{{expression contains unexpanded parameter pac… in test_unexpanded_exprs()
261 …(void)dynamic_cast<Types&>(values); // expected-error{{expression contains unexpanded parameter pa… in test_unexpanded_exprs()
264 …cast<Types&>(values); // expected-error{{expression contains unexpanded parameter packs 'Types' an… in test_unexpanded_exprs()
267 …(void)const_cast<Types&>(values); // expected-error{{expression contains unexpanded parameter pack… in test_unexpanded_exprs()
270 (void)typeid(Types); // expected-error{{expression contains unexpanded parameter pack 'Types'}} in test_unexpanded_exprs()
271 (void)typeid(values); // expected-error{{expression contains unexpanded parameter pack 'values'}} in test_unexpanded_exprs()
274 (void)__uuidof(Types); // expected-error{{expression contains unexpanded parameter pack 'Types'}} in test_unexpanded_exprs()
275 …(void)__uuidof(values); // expected-error{{expression contains unexpanded parameter pack 'values'}} in test_unexpanded_exprs()
280 throw Types(); // expected-error{{expression contains unexpanded parameter pack 'Types'}} in test_unexpanded_exprs()
281 throw values; // expected-error{{expression contains unexpanded parameter pack 'values'}} in test_unexpanded_exprs()
290 (void)Types(); // expected-error{{expression contains unexpanded parameter pack 'Types'}} in test_unexpanded_exprs()
293 (void)X(values); // expected-error{{expression contains unexpanded parameter pack 'values'}} in test_unexpanded_exprs()
298 (void)new Types; // expected-error{{expression contains unexpanded parameter pack 'Types'}} in test_unexpanded_exprs()
299 (void)new X(values); // expected-error{{expression contains unexpanded parameter pack 'values'}} in test_unexpanded_exprs()
300 …(void)new (values) X(values); // expected-error{{expression contains unexpanded parameter pack 'va… in test_unexpanded_exprs()
301 (void)new X [values]; // expected-error{{expression contains unexpanded parameter pack 'values'}} in test_unexpanded_exprs()
304 delete values; // expected-error{{expression contains unexpanded parameter pack 'values'}} in test_unexpanded_exprs()
305 delete [] values; // expected-error{{expression contains unexpanded parameter pack 'values'}} in test_unexpanded_exprs()
309 values.~T(); // expected-error{{expression contains unexpanded parameter pack 'values'}} in test_unexpanded_exprs()
310 t.~Types(); // expected-error{{expression contains unexpanded parameter pack 'Types'}} in test_unexpanded_exprs()
311 t.Types::~T(); // expected-error{{expression contains unexpanded parameter pack 'Types'}} in test_unexpanded_exprs()
314 __is_pod(Types); // expected-error{{expression contains unexpanded parameter pack 'Types'}} in test_unexpanded_exprs()
317 __is_base_of(Types, T); // expected-error{{expression contains unexpanded parameter pack 'Types'}} in test_unexpanded_exprs()
318 __is_base_of(T, Types); // expected-error{{expression contains unexpanded parameter pack 'Types'}} in test_unexpanded_exprs()
321 …test_unexpanded_exprs(values); // expected-error{{expression contains unexpanded parameter pack 'v… in test_unexpanded_exprs()
322 …test_unexpanded_exprs<Types>(); // expected-error{{expression contains unexpanded parameter pack '… in test_unexpanded_exprs()
325 …Types::test_unexpanded_exprs(); // expected-error{{expression contains unexpanded parameter pack '… in test_unexpanded_exprs()
326 …expanded_exprs<Types>(); // expected-error{{expression contains unexpanded parameter pack 'Types'}} in test_unexpanded_exprs()
329 Types(5); // expected-error{{expression contains unexpanded parameter pack 'Types'}} in test_unexpanded_exprs()
332 values.foo(); // expected-error{{expression contains unexpanded parameter pack 'values'}} in test_unexpanded_exprs()
333 t.foo(values); // expected-error{{expression contains unexpanded parameter pack 'values'}} in test_unexpanded_exprs()
336 // Types refers to the template type parameter pack in scope or a in test_unexpanded_exprs()
340 …t.template foo<Types>(); // expected-error{{expression contains unexpanded parameter pack 'Types'}} in test_unexpanded_exprs()
343 x.f<Types>(); // expected-error{{expression contains unexpanded parameter pack 'Types'}} in test_unexpanded_exprs()
344 x.f(values); // expected-error{{expression contains unexpanded parameter pack 'values'}} in test_unexpanded_exprs()
347 noexcept(values); // expected-error{{expression contains unexpanded parameter pack 'values'}} in test_unexpanded_exprs()
354 …for (auto t : values) { } // expected-error{{expression contains unexpanded parameter pack 'values… in test_unexpanded_exprs()
356 switch (values) { } // expected-error{{expression contains unexpanded parameter pack 'values'}} in test_unexpanded_exprs()
357 …switch (0) { case 0: case values: ; } // expected-error{{expression contains unexpanded parameter … in test_unexpanded_exprs()
359 do { } while (values); // expected-error{{expression contains unexpanded parameter pack 'values'}} in test_unexpanded_exprs()
362 goto *values; // expected-error{{expression contains unexpanded parameter pack 'values'}} in test_unexpanded_exprs()
364 …void f(int arg = values); // expected-error{{default argument contains unexpanded parameter pack '… in test_unexpanded_exprs()
367 // Test unexpanded parameter packs in partial specializations.
369 …int, Types>; // expected-error{{partial specialization contains unexpanded parameter pack 'Types'}}
372 // parameter packs.
379 …rTypes>* types; // expected-error{{declaration type contains unexpanded parameter packs 'OuterType…
383 …Types> > types; // expected-error{{declaration type contains unexpanded parameter packs 'VeryInner…
395 …ir<Args1, Args2> ... > type; // expected-error{{pack expansion contains parameter packs 'Args1' an…
410 f(5 ...); // expected-error{{pack expansion does not contain any unexpanded parameter packs}} in g()
411 f(args); // expected-error{{expression contains unexpanded parameter pack 'args'}} in g()
420 …xpansion contains parameter packs 'N' and 'M' that have different lengths (2 vs. 3)}} expected-err… in C()