// PR c++/66218 // { dg-do compile { target c++17 } } // { dg-options "-fconcepts" } template concept Same = __is_same_as(T, U); template concept C = requires { // { dg-message "in requirements" } { 0 } -> Same; // { dg-message "does not satisfy" } }; template constexpr bool f() { return true; } static_assert(f(), ""); // { dg-error "" } static_assert(f(), "");