aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp2a/lambda-targ3.C
blob: 31d08add2777e176be9bc22c4c361be05cceb183 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// PR c++/107457
// { dg-do compile { target c++20 } }

template<class T>
using lambda = decltype([]() {});

template<class R, class F = lambda<R>>
void test() { }

int main() {
  test<int>();
}