Debian Codegraph @

gcc/testsuite/g++.dg/cpp2a/lambda-targ4.C

raw
1 // PR c++/93595
2 // { dg-do compile { target c++20 } }
3
4 template<int>
5 struct bad {
6 template<class T, auto = []{ return T(); }>
7 static void f(T) { }
8 };
9
10 int main() {
11 bad<0>::f(0);
12 }