blob: bc679a71f9c1749931ab50ae2e0d80898c9c3277 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
// { dg-do compile { target c++20 } }
template <typename t>
struct S
{
template <typename t2>
requires false
friend void foobar(S, t2) {}
};
int main()
{
foobar(S<double>{}, int{}); // { dg-error "" }
}
|