2 // { dg-do compile { target c++17 } }
7 return [](auto...) constexpr { return true; };
10 // Compiles and works as intended.
11 template <typename T0>
14 static_assert(f([](auto x) -> decltype(x){})(T0{}));
17 // Compiles and works as intended.
18 template <typename T0>
21 constexpr auto a = f([](auto x) -> decltype(x){})(T0{});
25 // Compile-time error!
26 template <typename T0>
29 if constexpr(f([](auto x) -> decltype(x){})(T0{})) { }