// { dg-do compile { target c++2a } } template concept Fooable = requires(T t) { foo(t); }; // { dg-error "template instantiation depth" } template void foo(T t) { } void test() { struct S {} s; foo(s); } // { dg-prune-output "compilation terminated" }