// { dg-do compile { target c++17 } } // { dg-options "-fconcepts" } template struct is_same { static constexpr bool value = false; }; template struct is_same { static constexpr bool value = true; }; template concept bool Same = is_same::value; template concept bool C1 = true; template concept bool C2 = true; template concept bool C3() { return true; } template concept bool C4() { return true; } C1 c1 = 0; C2 c2 = 0; C3 c3 = 0; C4 c4 = 0; Same s1 = 'a'; // { dg-error "does not satisfy|is_same" }