// { dg-do compile { target c++20 } } // { dg-additional-options "-fconcepts" } template class NumericArray {}; template constexpr bool match_numeric_array = false; template constexpr bool match_numeric_array> = true; template concept cpt_NumericArrayContainer = match_numeric_array; template concept cpt_NumericArray = requires{requires cpt_NumericArrayContainer;}; template requires (!cpt_NumericArray) auto func(int, X) {} template requires (cpt_NumericArray) auto func(int, X) {} int main() { NumericArray v5; func(0, v5); }