// RUN: %clang_cc1 -std=c++2a -verify %s namespace PR44761 { template concept X = (sizeof(T) == sizeof(T)); template struct A { bool operator<(const A&) const & requires X; // #1 int operator<=>(const A&) const & requires X && X = delete; // #2 }; bool k1 = A() < A(); // not ordered by constraints: prefer non-rewritten form bool k2 = A() < A(); // prefer more-constrained 'operator<=>' // expected-error@-1 {{deleted}} // expected-note@#1 {{candidate}} // expected-note@#2 {{candidate function has been explicitly deleted}} // expected-note@#2 {{candidate function (with reversed parameter order) has been explicitly deleted}} }