aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp2a/fn-template24.C
blob: b444ac6a273428f31b76e21008b2a34f47aaed26 (plain)
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);
}