2014-09-23 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/62155
* g++.dg/cpp0x/lambda/lambda-62155.C: New.
From-SVN: r215497
+2014-09-23 Paolo Carlini <paolo.carlini@oracle.com>
+
+ PR c++/62155
+ * g++.dg/cpp0x/lambda/lambda-62155.C: New.
+
2014-09-22 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/62219
--- /dev/null
+// PR c++/62155
+// { dg-do compile { target c++11 } }
+
+template <typename T> struct S { // { dg-error "cannot convert" }
+ T i{[this] {}};
+};
+
+S<int> s; // { dg-error "cannot convert" }