aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp2a/lambda-uneval20.C
blob: fa8b504da9db45548a3554ff96e5e7af37dd7fa0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// PR c++/118391
// { dg-do compile { target c++20 } }

template<typename>
using A = int;

template<typename T>
using B = decltype([]<typename> {}.template operator()<T>());

template<typename T>
using C = A<B<T>>;

C<int> x;

int main() {}