8sa1-gcc/gcc/testsuite/g++.dg/cpp0x/lambda/lambda-deduce3.C
Jason Merrill 6781e2af70 PR c++/69223 - ICE with deduced template return type.
* semantics.c (apply_deduced_return_type): Call
	complete_type_or_else before building the new RESULT_DECL.

From-SVN: r238624
2016-07-21 23:45:54 -04:00

16 lines
181 B
C

// PR c++/69223
// { dg-do compile { target c++11 } }
template <class T> struct A
{
T x[20];
};
int main()
{
auto l = [](const A<int>& i){ return i; };
A<int> a;
l(a);
}