aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp2a/concepts-recursive-sat2.C
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/g++.dg/cpp2a/concepts-recursive-sat2.C')
-rw-r--r--gcc/testsuite/g++.dg/cpp2a/concepts-recursive-sat2.C6
1 files changed, 2 insertions, 4 deletions
diff --git a/gcc/testsuite/g++.dg/cpp2a/concepts-recursive-sat2.C b/gcc/testsuite/g++.dg/cpp2a/concepts-recursive-sat2.C
index 992fcbb..9bc96f5 100644
--- a/gcc/testsuite/g++.dg/cpp2a/concepts-recursive-sat2.C
+++ b/gcc/testsuite/g++.dg/cpp2a/concepts-recursive-sat2.C
@@ -1,7 +1,7 @@
// { dg-do compile { target c++20 } }
template<typename T>
-concept Fooable = requires(T t) { foo(t); }; // { dg-error "template instantiation depth" }
+concept Fooable = requires(T t) { foo(t); }; // { dg-error "depends on itself" }
template<Fooable T>
void foo(T t) { }
@@ -9,7 +9,5 @@ void foo(T t) { }
void test()
{
struct S {} s;
- foo(s);
+ foo(s); // { dg-error "no match" }
}
-
-// { dg-prune-output "compilation terminated" }