https://gcc.gnu.org/bugzilla/show_bug.cgi?id=126308
--- Comment #1 from Younan Zhang <zyn7109 at gmail dot com> ---
Sorry I marked the code at incorrect locations:
template <auto V, class... Ts>
constexpr auto foo =
V.template operator()<Ts...>();
template<auto P, class... Ts> // #0
constexpr auto bar =
foo<[]<Ts...>(){ return P; }>; // #1
int x = bar<1, int, char, unsigned>;
