PR c++/89917 - ICE with lambda in variadic mem-init.
authorJason Merrill <jason@redhat.com>
Wed, 3 Apr 2019 04:48:45 +0000 (00:48 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Wed, 3 Apr 2019 04:48:45 +0000 (00:48 -0400)
commita3379186762d6348e45bc5df34dfdea3e26bff98
tree7491ac8809271c58f0a866929576efec5237aa29
parent38802907f28249f501110e41d9ece9c5b7d9167b
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
gcc/cp/ChangeLog
gcc/cp/pt.c
gcc/testsuite/g++.dg/cpp0x/lambda/lambda-variadic8.C [new file with mode: 0644]