2015-03-05 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/64834
* g++.dg/cpp1y/lambda-generic-uneval1.C: New.
From-SVN: r221205
+2015-03-05 Paolo Carlini <paolo.carlini@oracle.com>
+
+ PR c++/64834
+ * g++.dg/cpp1y/lambda-generic-uneval1.C: New.
+
2015-03-04 Eric Botcazou <ebotcazou@adacore.com>
* gnat.dg/entry_queues3.adb: New test.
--- /dev/null
+// PR c++/64834
+// { dg-do compile { target c++14 } }
+
+template <typename F>
+void e(F f)
+{
+ f(1);
+}
+
+template <int I>
+void bar() {
+ int x;
+ e([&] (const int& y) { (void)sizeof(x); });
+ e([&] (const auto& y) { (void)sizeof(x); });
+}
+
+void baz() { bar<1>(); }