From: Paolo Carlini Date: Tue, 23 Sep 2014 08:09:14 +0000 (+0000) Subject: re PR c++/62155 (ICE in tsubst_copy, at cp/pt.c:12544) X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a547602430a7cdd78bfad557711532a795810b00;p=gcc.git re PR c++/62155 (ICE in tsubst_copy, at cp/pt.c:12544) 2014-09-23 Paolo Carlini PR c++/62155 * g++.dg/cpp0x/lambda/lambda-62155.C: New. From-SVN: r215497 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 08ba76443b1..ff5c5064a63 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2014-09-23 Paolo Carlini + + PR c++/62155 + * g++.dg/cpp0x/lambda/lambda-62155.C: New. + 2014-09-22 Paolo Carlini PR c++/62219 diff --git a/gcc/testsuite/g++.dg/cpp0x/lambda/lambda-62155.C b/gcc/testsuite/g++.dg/cpp0x/lambda/lambda-62155.C new file mode 100644 index 00000000000..76eb2da7836 --- /dev/null +++ b/gcc/testsuite/g++.dg/cpp0x/lambda/lambda-62155.C @@ -0,0 +1,8 @@ +// PR c++/62155 +// { dg-do compile { target c++11 } } + +template struct S { // { dg-error "cannot convert" } + T i{[this] {}}; +}; + +S s; // { dg-error "cannot convert" }