2017-10-02 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/69977
* g++.dg/cpp1y/lambda-generic-69977.C: New.
From-SVN: r253340
+2017-10-02 Paolo Carlini <paolo.carlini@oracle.com>
+
+ PR c++/69977
+ * g++.dg/cpp1y/lambda-generic-69977.C: New.
+
2017-10-02 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/59991
--- /dev/null
+// PR c++/69977
+// { dg-do compile { target c++14 } }
+
+class A {
+private:
+ void method(int i) {
+ (void) i;
+ }
+
+public:
+ void publicMethod() {
+ auto lambda = [&] (const auto k) {
+ method(k);
+ };
+ lambda(42);
+ }
+};
+
+int main()
+{
+ A a;
+ a.publicMethod();
+}