[all-commits] [llvm/llvm-project] b4692f: [Clang] Updating handling of defaulted comparison ...

Shafik Yaghmour via All-commits all-commits at lists.llvm.org
Thu May 4 11:07:33 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: b4692f29263006c7ea519c7b11c9082384f0af53
      https://github.com/llvm/llvm-project/commit/b4692f29263006c7ea519c7b11c9082384f0af53
  Author: Shafik Yaghmour <shafik.yaghmour at intel.com>
  Date:   2023-05-04 (Thu, 04 May 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/p3.cpp
    M clang/test/CXX/class/class.compare/class.compare.default/p4.cpp
    M clang/test/CXX/dcl.dcl/dcl.spec/dcl.constexpr/p3.cpp
    M clang/test/CXX/dcl.dcl/dcl.spec/dcl.constexpr/p4.cpp
    M clang/www/cxx_status.html

  Log Message:
  -----------
  [Clang] Updating handling of defaulted comparison operators to reflect changes from P2448R2

Prior to P2448R2 we were more aggressive in diagnosing ill-formed
constexpr functions. Many of these restrictions were relaxed and now it
is not required for defaulted comparison operators to call constexpr
functions.

This behavior is extended to before C++23 and diagnostic for it's use
can be enabled w/ -pedantic or -Wc++2b-default-comp-relaxed-constexpr

This fixes: https://github.com/llvm/llvm-project/issues/61238

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




More information about the All-commits mailing list