From 5a4dbaa8240fbb8faf471714c457f1736bf7c7d4 Mon Sep 17 00:00:00 2001 From: Paolo Carlini Date: Sat, 3 Mar 2018 18:09:27 +0000 Subject: [PATCH] re PR c++/67370 (Invalid "parameter packs not expanded" error in lambda capture) 2018-03-03 Paolo Carlini PR c++/67370 * g++.dg/cpp0x/lambda/lambda-67370.C: New. From-SVN: r258218 --- gcc/testsuite/ChangeLog | 5 +++++ gcc/testsuite/g++.dg/cpp0x/lambda/lambda-67370.C | 9 +++++++++ 2 files changed, 14 insertions(+) create mode 100644 gcc/testsuite/g++.dg/cpp0x/lambda/lambda-67370.C diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index b5b57798c41..fdab928dbe1 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2018-03-03 Paolo Carlini + + PR c++/67370 + * g++.dg/cpp0x/lambda/lambda-67370.C: New. + 2018-03-03 Paolo Carlini PR c++/71464 diff --git a/gcc/testsuite/g++.dg/cpp0x/lambda/lambda-67370.C b/gcc/testsuite/g++.dg/cpp0x/lambda/lambda-67370.C new file mode 100644 index 00000000000..cd872756b3e --- /dev/null +++ b/gcc/testsuite/g++.dg/cpp0x/lambda/lambda-67370.C @@ -0,0 +1,9 @@ +// { dg-do compile { target c++11 } } + +template +void expand(T const& ...); + +template +void f(T ...t) { + expand([t]{ }...); +} -- 2.30.2