Lines Matching full:unexpanded
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}}
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 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'}}
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'}}
226 // FIXME: Test for unexpanded parameter packs in each of the statements.
247 (void)(values + 0); // expected-error{{expression contains unexpanded parameter pack 'values'}}
248 (void)(0 + values); // expected-error{{expression contains unexpanded parameter pack 'values'}}
251 values.f(); // expected-error{{expression contains unexpanded parameter pack 'values'}}
253 x.f(values); // expected-error{{expression contains unexpanded parameter pack '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'}}
271 (void)typeid(values); // expected-error{{expression contains unexpanded parameter pack 'values'}}
274 (void)__uuidof(Types); // expected-error{{expression contains unexpanded parameter pack 'Types'}}
275 (void)__uuidof(values); // expected-error{{expression contains unexpanded parameter pack 'values'}}
280 throw Types(); // expected-error{{expression contains unexpanded parameter pack 'Types'}}
281 throw values; // expected-error{{expression contains unexpanded parameter pack 'values'}}
290 (void)Types(); // expected-error{{expression contains unexpanded parameter pack 'Types'}}
293 (void)X(values); // expected-error{{expression contains unexpanded parameter pack 'values'}}
298 (void)new Types; // expected-error{{expression contains unexpanded parameter pack 'Types'}}
299 (void)new X(values); // expected-error{{expression contains unexpanded parameter pack 'values'}}
300 (void)new (values) X(values); // expected-error{{expression contains unexpanded parameter pack 'values'}}
301 (void)new X [values]; // expected-error{{expression contains unexpanded parameter pack 'values'}}
304 delete values; // expected-error{{expression contains unexpanded parameter pack 'values'}}
305 delete [] values; // expected-error{{expression contains unexpanded parameter pack 'values'}}
309 values.~T(); // expected-error{{expression contains unexpanded parameter pack 'values'}}
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'}}
321 test_unexpanded_exprs(values); // expected-error{{expression contains unexpanded parameter pack 'values'}}
322 test_unexpanded_exprs<Types>(); // expected-error{{expression contains unexpanded parameter pack 'Types'}}
325 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'}}
332 values.foo(); // expected-error{{expression contains unexpanded parameter pack 'values'}}
333 t.foo(values); // expected-error{{expression contains unexpanded parameter pack 'values'}}
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'}}
344 x.f(values); // expected-error{{expression contains unexpanded parameter pack 'values'}}
347 noexcept(values); // expected-error{{expression contains unexpanded parameter pack 'values'}}
354 for (auto t : values) { } // expected-error{{expression contains unexpanded parameter pack 'values'}}
356 switch (values) { } // expected-error{{expression contains unexpanded parameter pack 'values'}}
357 switch (0) { case 0: case values: ; } // expected-error{{expression contains unexpanded parameter pack 'values'}}
359 do { } while (values); // expected-error{{expression contains unexpanded parameter pack 'values'}}
362 goto *values; // expected-error{{expression contains unexpanded parameter pack 'values'}}
364 void f(int arg = values); // expected-error{{default argument contains unexpanded parameter pack 'values'}}
367 // Test unexpanded parameter packs in partial specializations.
369 struct TestUnexpandedDecls<int, Types>; // expected-error{{partial specialization contains unexpanded parameter pack 'Types'}}
371 // Test for diagnostics in the presence of multiple unexpanded
379 typedef pair<OuterTypes, InnerTypes>* types; // expected-error{{declaration type contains unexpanded parameter packs 'OuterTypes' and 'InnerTypes'}}
383 typedef pair<pair<VeryInnerTypes, OuterTypes>, pair<InnerTypes, OuterTypes> > types; // expected-error{{declaration type contains unexpanded parameter packs 'VeryInnerTypes', 'OuterTypes', ...}}
410 f(5 ...); // expected-error{{pack expansion does not contain any unexpanded parameter packs}}
411 f(args); // expected-error{{expression contains unexpanded parameter pack 'args'}}