Debian Codegraph @

gcc/testsuite/g++.dg/cpp2a/lambda-generic-ttp2.C

raw
1 // PR c++/109651
2 // { dg-do compile { target c++20 } }
3
4 template<class T>
5 auto f() {
6 return []<class U, template<class V, U, V> class TT>(U, TT<int, 1, 2>) { };
7 }
8
9 template<class T, int N, int M> struct A { };
10
11 int main() {
12 f<int>()(0, A<int, 1, 2>{});
13 }