Commit 1d14f58c by Paolo Carlini Committed by Paolo Carlini

re PR c++/82230 (ICE: in tsubst, at cp/pt.c:13686 when binding lambda to…

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
parent 99f1498e
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
* g++.dg/cpp1y/lambda-generic-ice7.C: New.
......
// 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>();
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment