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
15 lines
157 B
C
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;
|