2017-09-13 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/47226
* g++.dg/cpp0x/lambda/lambda-variadic4.C: New.
* g++.dg/cpp0x/lambda/lambda-variadic5.C: Likewise.
From-SVN: r252064
+2017-09-13 Paolo Carlini <paolo.carlini@oracle.com>
+
+ PR c++/47226
+ * g++.dg/cpp0x/lambda/lambda-variadic4.C: New.
+ * g++.dg/cpp0x/lambda/lambda-variadic5.C: Likewise.
+
2017-09-13 Richard Biener <rguenther@suse.de>
PR middle-end/82128
--- /dev/null
+// PR c++/47226
+// { dg-do compile { target c++11 } }
+
+void slurp(...) { }
+template<int ...N>
+void print() {
+ slurp([]() -> int {
+ (void) N; // or something fancy...
+ return 0;
+ }() ...);
+}
--- /dev/null
+// PR c++/47226
+// { dg-do compile { target c++11 } }
+
+template<class T>
+void print(const T&) {}
+
+template<class... T>
+void accept_all(T&&...){}
+
+template<class... T>
+void print_all(const T&... t)
+{
+ accept_all([&]()->int { print(t); return 0; }...);
+}
+
+int main()
+{
+ print_all(1, true, 'a');
+}