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:
parent
b2d623e53b
commit
a547602430
@ -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
|
||||
|
8
gcc/testsuite/g++.dg/cpp0x/lambda/lambda-62155.C
Normal file
8
gcc/testsuite/g++.dg/cpp0x/lambda/lambda-62155.C
Normal 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" }
|
Loading…
Reference in New Issue
Block a user