// PR c++/67427 // { dg-do compile { target c++20 } } // { dg-additional-options "-fconcepts" } template concept Sentinel = requires (I i) { i; }; template concept SizedIteratorRange = Sentinel && true; template requires Sentinel void distance(I first, S last) {} template requires SizedIteratorRange void distance(I first, S last) {} int main() { distance(42, 43); // { dg-error "ambiguous" } }