2017-10-10 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/81032
* g++.dg/cpp1y/lambda-generic-ice6.C: New.
From-SVN: r253619
+2017-10-10 Paolo Carlini <paolo.carlini@oracle.com>
+
+ PR c++/81032
+ * g++.dg/cpp1y/lambda-generic-ice6.C: New.
+
2017-10-10 Jakub Jelinek <jakub@redhat.com>
PR rtl-optimization/68205
--- /dev/null
+// PR c++/81032
+// { dg-do compile { target c++14 } }
+
+template<typename T> constexpr void foo(T t)
+{
+ constexpr int i = t; // { dg-error "constant" }
+ [=](auto){ return i; }(0);
+}
+
+void bar()
+{
+ foo(0);
+}