2017-10-02 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/59991
* g++.dg/cpp0x/lambda/lambda-ice23.C: New.
From-SVN: r253339
+2017-10-02 Paolo Carlini <paolo.carlini@oracle.com>
+
+ PR c++/59991
+ * g++.dg/cpp0x/lambda/lambda-ice23.C: New.
+
2017-10-02 Tom de Vries <tom@codesourcery.com>
* gcc.c-torture/compile/pr82337.c: Add
--- /dev/null
+// PR c++/59991
+// { dg-do compile { target c++11 } }
+
+template <typename T>
+constexpr int r(T x) {
+ auto f = [r,x]() { return r(x); }; // { dg-error "incomplete type" }
+ return 0;
+}
+
+int main()
+{
+ r(0);
+}