Debian Codegraph @

gcc/testsuite/g++.dg/cpp2a/fn-template24.C

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