2017-10-02 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/79005
* g++.dg/cpp1y/lambda-generic-79005.C: New.
From-SVN: r253368
+2017-10-02 Paolo Carlini <paolo.carlini@oracle.com>
+
+ PR c++/79005
+ * g++.dg/cpp1y/lambda-generic-79005.C: New.
+
2017-10-02 Paul Thomas <pault@gcc.gnu.org>
PR fortran/82312
--- /dev/null
+// PR c++/79005
+// { dg-do compile { target c++14 } }
+
+int main()
+{
+ auto glambda = [] (auto a)
+ {
+ const int c = a;
+ auto cglambda = [&] ( auto b )
+ {
+ double result;
+ result = b * a;
+ result = b * c;
+ return result;
+ };
+ cglambda ( 1 );
+ a = c;
+ };
+
+ glambda( 1 );
+}