Files
gcc-reflection/gcc/testsuite/g++.dg/cpp1y/lambda-generic-ice9.C
Jason Merrill 11b782f7f2 PR c++/84802 - ICE capturing uninstantiated class.
* lambda.c (build_capture_proxy): Call complete_type.

From-SVN: r258447
2018-03-12 08:58:38 -04:00

12 lines
165 B
C

// PR c++/84802
// { dg-do compile { target c++14 } }
template <class T> struct A { };
void f (A<int>& ar)
{
[](const auto& x)
{ return [x]{}(); }
(ar);
}