2017-10-02 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/70570
* g++.dg/cpp1y/lambda-generic-70570.C: New.
From-SVN: r253370
+2017-10-02 Paolo Carlini <paolo.carlini@oracle.com>
+
+ PR c++/70570
+ * g++.dg/cpp1y/lambda-generic-70570.C: New.
+
2017-10-02 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/79590
--- /dev/null
+// PR c++/70570
+// { dg-do assemble { target c++14 } }
+
+template<typename T> void foo(T f) {
+ f(1);
+}
+
+int main() {
+ static const int x = 42;
+ foo([](auto y){
+ x;
+ [](){
+ x;
+ };
+ });
+}