re PR c++/67370 (Invalid "parameter packs not expanded" error in lambda capture)
authorPaolo Carlini <paolo.carlini@oracle.com>
Sat, 3 Mar 2018 18:09:27 +0000 (18:09 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Sat, 3 Mar 2018 18:09:27 +0000 (18:09 +0000)
2018-03-03  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/67370
* g++.dg/cpp0x/lambda/lambda-67370.C: New.

From-SVN: r258218

gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp0x/lambda/lambda-67370.C [new file with mode: 0644]

index b5b57798c410f7728b4862b2145e52bcae4ad553..fdab928dbe1cf0d7208e623f566d6b5650014e75 100644 (file)
@@ -1,3 +1,8 @@
+2018-03-03  Paolo Carlini  <paolo.carlini@oracle.com>
+
+       PR c++/67370
+       * g++.dg/cpp0x/lambda/lambda-67370.C: New.
+
 2018-03-03  Paolo Carlini  <paolo.carlini@oracle.com>
 
        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 (file)
index 0000000..cd87275
--- /dev/null
@@ -0,0 +1,9 @@
+// { dg-do compile { target c++11 } }
+
+template <typename ...T>
+void expand(T const& ...);
+    
+template <typename ...T>
+void f(T ...t) {
+  expand([t]{ }...);
+}