Daily bump.
[official-gcc.git] / gcc / testsuite / g++.dg / cpp2a / lambda-targ2.C
blob41b8d8749f2bc982d69043764c8ae9c99ac5414f
1 // PR c++/114393
2 // { dg-do compile { target c++20 } }
4 template <auto _DescriptorFn> struct c1 {};
6 template <class _Descriptor, auto t = [] { return _Descriptor(); }>
7 inline constexpr auto b_v = t;
9 template <class _Tag>
10 using c1_t = c1<b_v<int>>;
12 template <class _Data>
13 constexpr auto g(_Data __data) {
14   return c1_t<_Data>{};
17 void f() {
18   auto &&b = g(0);