[PATCH] D103929: [clang] P2085R0: Consistent defaulted comparisons

Alexandru Octavian Buțiu via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Sat Jul 10 13:26:15 PDT 2021


predator5047 added a comment.

Regarding

  struct A;
  bool operator==(A, A);
  struct A {
    friend bool operator==(A, A) = default; // error, not first declaration
  };

GCC and msvc have marked P2085R0 as complete and do not implement this rule should I  implement it anyway? 
I don't know if clang  would rather adhere to the spec or do the same as  gcc and msvc.
https://godbolt.org/z/nhbTWs5of


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D103929/new/

https://reviews.llvm.org/D103929



More information about the cfe-commits mailing list