[C++ PATCH] Implement D1959R0, remove weak_equality and strong_equality.

2019-11-07 Thread Jason Merrill
Shortly after I finished implementing the previous <=> semantics, the committee decided to remove the *_equality comparison categories, because they were largely obsoleted by the earlier change that separated operator== from its original dependency on operator<=>. Tested x86_64-pc-linux-gnu, apply

Re: [C++ PATCH] Implement D1959R0, remove weak_equality and strong_equality.

2019-11-07 Thread Jakub Jelinek
On Thu, Nov 07, 2019 at 05:05:16PM +, Jason Merrill wrote: > --- /dev/null > +++ b/gcc/testsuite/g++.dg/cpp2a/spaceship-scalar1-neg.C > @@ -0,0 +1,25 @@ > +// { dg-do run { target c++2a } } > + > +#include > + > +#define assert(X) do { if (!(X)) __builtin_abort(); } while(0) > + > +void f(){}