[all-commits] [llvm/llvm-project] 593a27: [clang] Show error if defaulted comparions operato...

jensmassberg via All-commits all-commits at lists.llvm.org
Wed Jun 7 03:57:45 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 593a2740f7a499e35f19e64d180d0b8246b52ba3
      https://github.com/llvm/llvm-project/commit/593a2740f7a499e35f19e64d180d0b8246b52ba3
  Author: Jens Massberg <massberg at google.com>
  Date:   2023-06-07 (Wed, 07 Jun 2023)

  Changed paths:
    M clang/docs/ReleaseNotes.rst
    M clang/include/clang/Basic/DiagnosticSemaKinds.td
    M clang/lib/Sema/SemaDeclCXX.cpp
    M clang/test/CXX/class/class.compare/class.compare.default/p1.cpp
    M clang/test/CodeGenCXX/virtual-compare.cpp
    M clang/www/cxx_status.html

  Log Message:
  -----------
  [clang] Show error if defaulted comparions operator function is volatile or has ref-qualifier &&.

This patch implemed the change proposed in [P2002R1] to 11.11.1 [class.compare.default] paragraph 1.

A defaulted compariosn operator function must be non-volatile and must either have no ref-qualifier or the ref-qualifier &.

Differential Revision: https://reviews.llvm.org/D148924




More information about the All-commits mailing list