Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp2a
/
concepts-recursive-sat2.C
blob: 9bc96f58979dc4c3c065ef3425d6751e0f67c41c [
file
] [
log
] [
blame
]
// { dg-do compile { target c++20 } }
template
<
typename
T
>
concept
Fooable
=
requires
(
T t
)
{
foo
(
t
);
};
// { dg-error "depends on itself" }
template
<
Fooable
T
>
void
foo
(
T t
)
{
}
void
test
()
{
struct
S
{}
s
;
foo
(
s
);
// { dg-error "no match" }
}