mirror of
https://forge.sourceware.org/marek/gcc.git
synced 2026-02-22 12:00:11 -05:00
2017-10-11 Paolo Carlini <paolo.carlini@oracle.com> PR c++/82230 * g++.dg/cpp1y/lambda-generic-ice8.C: New. From-SVN: r253631
17 lines
211 B
C
17 lines
211 B
C
// 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>();
|
|
}
|