Debian Codegraph @

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

raw
1 // PR c++/94507 - ICE-on-invalid with lambda template.
2 // { dg-do compile { target c++20 } }
3
4 struct S { };
5
6 template<typename T, typename U>
7 auto foo(T, U)
8 {
9 [] <> () { foo (S{}, S{}); }; // { dg-error "" }
10 }