2019-02-28 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/89522
* g++.dg/cpp1y/lambda-generic-ice10.C: New.
From-SVN: r269275
+2019-02-28 Paolo Carlini <paolo.carlini@oracle.com>
+
+ PR c++/89522
+ * g++.dg/cpp1y/lambda-generic-ice10.C: New.
+
2019-02-28 Jakub Jelinek <jakub@redhat.com>
PR c/89525
--- /dev/null
+// PR c++/89522
+// { dg-do compile { target c++14 } }
+
+template <typename F>
+void foo (F f)
+{
+ f (1);
+}
+template <typename T>
+void bar (T)
+{
+ auto f = [&](auto i) { if (f); }; // { dg-error "use of .f. before deduction of .auto." }
+ foo (f);
+}
+int main ()
+{
+ bar (0);
+}