re PR c++/62155 (ICE in tsubst_copy, at cp/pt.c:12544)

2014-09-23  Paolo Carlini  <paolo.carlini@oracle.com>

	PR c++/62155
	* g++.dg/cpp0x/lambda/lambda-62155.C: New.

From-SVN: r215497
This commit is contained in:
Paolo Carlini 2014-09-23 08:09:14 +00:00 committed by Paolo Carlini
parent b2d623e53b
commit a547602430
2 changed files with 13 additions and 0 deletions

View File

@ -1,3 +1,8 @@
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

View File

@ -0,0 +1,8 @@
// 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" }