Files
gcc-reflection/gcc/testsuite/g++.dg/cpp1y/lambda-generic-trailing1.C
Jason Merrill a0a6a8c966 pt.c (tsubst_copy_and_build): Get LAMBDA_EXPR_RETURN_TYPE from the instantiated closure.
* pt.c (tsubst_copy_and_build) [LAMBDA_EXPR]: Get
	LAMBDA_EXPR_RETURN_TYPE from the instantiated closure.

From-SVN: r233955
2016-03-03 20:45:48 -05:00

13 lines
153 B
C

// { dg-do compile { target c++14 } }
template <class T>
void f()
{
auto lam = [](auto a)->decltype(++a) { return a; };
}
int main()
{
f<int>();
}