mirror of
https://forge.sourceware.org/marek/gcc.git
synced 2026-02-22 12:00:11 -05:00
* pt.c (tsubst_copy_and_build) [LAMBDA_EXPR]: Get LAMBDA_EXPR_RETURN_TYPE from the instantiated closure. From-SVN: r233955
13 lines
153 B
C
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>();
|
|
}
|