2015-01-20 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/62241
* g++.dg/cpp1y/lambda-init12.C: New.
From-SVN: r219890
+2015-01-20 Paolo Carlini <paolo.carlini@oracle.com>
+
+ PR c++/62241
+ * g++.dg/cpp1y/lambda-init12.C: New.
+
2015-01-20 Richard Biener <rguenther@suse.de>
PR tree-optimization/64410
--- /dev/null
+// PR c++/62241
+// { dg-do compile { target c++14 } }
+
+template<typename Signature>
+struct function
+{
+ template<typename Functor>
+ function(Functor) { }
+};
+
+int main ()
+{
+ int bar = 0;
+ function<void ()> { [foo = bar] { } };
+}