PR c++/71837 - pack expansion in init-capture
authorJason Merrill <jason@redhat.com>
Mon, 25 Jul 2016 19:16:16 +0000 (15:16 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Mon, 25 Jul 2016 19:16:16 +0000 (15:16 -0400)
commit47265942fa55c8198ef712af8ee23c4700ca2dfb
tree3cfaeafad0fb02b4fdef81de985517f29e064e9c
parente27f0bc9ca3e9d9266eb299ee6a27daef5c1e0b6
PR c++/71837 - pack expansion in init-capture

* lambda.c (add_capture): Leave a pack expansion in a TREE_LIST.
(build_lambda_object): Call build_x_compound_expr_from_list.
* pt.c (tsubst) [DECLTYPE_TYPE]: Likewise.

From-SVN: r238733
gcc/cp/ChangeLog
gcc/cp/lambda.c
gcc/cp/pt.c
gcc/testsuite/g++.dg/cpp1y/lambda-init15.C [new file with mode: 0644]
gcc/testsuite/g++.dg/cpp1y/lambda-init15a.C [new file with mode: 0644]