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:
parent
99f1498eed
commit
1d14f58c1f
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
|
||||
|
16
gcc/testsuite/g++.dg/cpp1y/lambda-generic-ice8.C
Normal file
16
gcc/testsuite/g++.dg/cpp1y/lambda-generic-ice8.C
Normal file
@ -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>();
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user