[llvm-bugs] [Bug 51874] [C++20] Wrongly worded warning on defaulted-as-deleted operator!=

via llvm-bugs llvm-bugs at lists.llvm.org
Wed Sep 15 15:44:08 PDT 2021


https://bugs.llvm.org/show_bug.cgi?id=51874

Richard Smith <richard-llvm at metafoo.co.uk> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|CONFIRMED                   |RESOLVED
 Fixed By Commit(s)|                            |699da98739b0f88c27f75adbe82
                   |                            |95c7e1dfd0188
         Resolution|---                         |FIXED

--- Comment #1 from Richard Smith <richard-llvm at metafoo.co.uk> ---
Fixed:

<stdin>:4:8: warning: explicitly defaulted equality comparison operator is
implicitly deleted [-Wdefaulted-function-deleted]
  bool operator!=(const C&) const = default;
       ^
<stdin>:4:8: note: defaulted 'operator!=' is implicitly deleted because there
is no viable 'operator==' for 'C'

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20210915/6d8671fb/attachment.html>


More information about the llvm-bugs mailing list