2
0
mirror of git://gcc.gnu.org/git/gcc.git synced 2025-03-21 23:41:13 +08:00

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  <paolo.carlini@oracle.com>

	PR c++/82230
	* g++.dg/cpp1y/lambda-generic-ice8.C: New.

From-SVN: r253631
This commit is contained in:
Paolo Carlini 2017-10-11 09:04:29 +00:00 committed by Paolo Carlini
parent 99f1498eed
commit 1d14f58c1f
2 changed files with 21 additions and 0 deletions
gcc/testsuite

@ -1,3 +1,8 @@
2017-10-11 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/82230
* g++.dg/cpp1y/lambda-generic-ice8.C: New.
2017-10-11 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/81299

@ -0,0 +1,16 @@
// PR c++/82230
// { dg-do compile { target c++14 } }
template <class>
struct c
{
template <class>
void f()
{
[](auto) { auto x = [] {}; }(0);
}
};
int main()
{
c<int>{}.f<int>();
}