// { dg-do compile { target c++17_only } } // { dg-options "-fconcepts-ts" } template concept bool Same = __is_same_as(T, U); const int i = 0; template concept bool C = requires { { &i } -> const Same*; // { dg-error "not a plain type-constraint" } }; template constexpr bool f() { return true; } static_assert(f(), ""); // { dg-error "no match" } static_assert(f(), ""); // { dg-error "no match" }