* semantics.c (apply_deduced_return_type): Call complete_type_or_else before building the new RESULT_DECL. From-SVN: r238624
16 lines
181 B
C
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);
|
|
}
|