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