// PR c++/67240 // { dg-do compile { target c++20 } } // { dg-additional-options "-fconcepts-diagnostics-depth=2" } template concept Same = __is_same_as(T,U); int foo(int x) { return x; } template concept C1 = requires (T x) { {foo(x)} -> Same; // { dg-error "placeholder constraints" } }; template concept C2 = requires (T x) { {foo(x)} -> Same; // { dg-error "placeholder constraints" } }; static_assert( C1 ); // { dg-error "assert" } static_assert( C2 ); // { dg-error "assert" }