From: Paolo Carlini Date: Wed, 11 Oct 2017 09:04:29 +0000 (+0000) Subject: re PR c++/82230 (ICE: in tsubst, at cp/pt.c:13686 when binding lambda to variable... X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=1d14f58c1fbe6dace2666705c3e9262df53bda6d;p=gcc.git re PR c++/82230 (ICE: in tsubst, at cp/pt.c:13686 when binding lambda to variable inside a generic lambda inside a template member function inside a template class) 2017-10-11 Paolo Carlini PR c++/82230 * g++.dg/cpp1y/lambda-generic-ice8.C: New. From-SVN: r253631 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index fef42859f25..ce4019198fb 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2017-10-11 Paolo Carlini + + PR c++/82230 + * g++.dg/cpp1y/lambda-generic-ice8.C: New. + 2017-10-11 Paolo Carlini PR c++/81299 diff --git a/gcc/testsuite/g++.dg/cpp1y/lambda-generic-ice8.C b/gcc/testsuite/g++.dg/cpp1y/lambda-generic-ice8.C new file mode 100644 index 00000000000..a39ce44115d --- /dev/null +++ b/gcc/testsuite/g++.dg/cpp1y/lambda-generic-ice8.C @@ -0,0 +1,16 @@ +// PR c++/82230 +// { dg-do compile { target c++14 } } + +template + struct c + { + template + void f() + { + [](auto) { auto x = [] {}; }(0); + } +}; +int main() +{ + c{}.f(); +}