[all-commits] [llvm/llvm-project] 6d0fab: [Clang] Fix defaulted equality operator so that it...
Shafik Yaghmour via All-commits
all-commits at lists.llvm.org
Fri Apr 14 15:01:15 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 6d0fab467efbc7ce92bd890d9618259c4995ddcc
https://github.com/llvm/llvm-project/commit/6d0fab467efbc7ce92bd890d9618259c4995ddcc
Author: Shafik Yaghmour <shafik.yaghmour at intel.com>
Date: 2023-04-14 (Fri, 14 Apr 2023)
Changed paths:
M clang/docs/ReleaseNotes.rst
M clang/lib/Sema/SemaDeclCXX.cpp
M clang/test/CXX/class/class.compare/class.compare.default/p1.cpp
A clang/test/CodeGenCXX/defaulted_equality_ignore_unnamed_bitfields.cpp
Log Message:
-----------
[Clang] Fix defaulted equality operator so that it does not attempt to compare unnamed bit-fields
If we look at class.bit p2 it tells us that that unnamed bit-fields are not
members and class.compare.default p5 tells us that we should only compare
non-static data members of the class.
This fixes: https://github.com/llvm/llvm-project/issues/61335 and https://github.com/llvm/llvm-project/issues/61417
Differential Revision: https://reviews.llvm.org/D146329
More information about the All-commits
mailing list