Debian Codegraph @

gcc/testsuite/g++.dg/cpp2a/lambda-targ2a.C

raw
1 // PR c++/114393
2 // { dg-do compile { target c++20 } }
3
4 template <auto _DescriptorFn> struct c1 {};
5
6 template <class _Descriptor, auto F = [] { return _Descriptor(); }>
7 inline constexpr auto b_v = F;
8
9 template <class T, class U>
10 inline constexpr auto c_v = b_v<U>;
11
12 auto f = c_v<int, char>;
13 using type = decltype(f());
14 using type = char;