8sa1-gcc/gcc/testsuite/g++.dg/cpp0x/lambda/lambda-variadic8.C
Jason Merrill a337918676 PR c++/89917 - ICE with lambda in variadic mem-init.
A mem-initializer is not a type, and we don't want to turn autos within it
into packs.

	* pt.c (make_pack_expansion): Change type_pack_expansion_p to false.

From-SVN: r270111
2019-04-03 00:48:45 -04:00

15 lines
157 B
C

// PR c++/89917
// { dg-do compile { target c++11 } }
struct A
{
A(...);
};
template<typename... T> struct B : T...
{
B() : T([]{})... {}
};
B<A> b;