1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
// PR c++/99911 // { dg-do compile { target c++20 } } namespace N { struct A { }; template<class T> void get(A); }; template<class T> auto f() { return []<class U>(U) { get<U>(T{}); }; } int main() { f<N::A>()(0); }