https://gcc.gnu.org/bugzilla/show_bug.cgi?id=123601

--- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
And
#include <compare>
struct D {
  auto operator<=>(int x) const { return 1; }
};
void foo (bool);
template <class T> void f() {
  D d{42};
  int d1 = 42;
  foo(is_eq(d1 <=> d));
}
is valid.

Reply via email to