c++: P0847R7 (deducing this) - xobj lambdas. [PR102609]
[official-gcc.git] / gcc / testsuite / g++.dg / cpp2a / lambda-generic-ttp2.C
blobdc2029d7227e63ac6ebc1e85d90a8d7059adc508
1 // PR c++/109651
2 // { dg-do compile { target c++20 } }
4 template<class T>
5 auto f() {
6   return []<class U, template<class V, U, V> class TT>(U, TT<int, 1, 2>) { };
9 template<class T, int N, int M> struct A { };
11 int main() {
12   f<int>()(0, A<int, 1, 2>{});