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