File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -585,6 +585,8 @@ Improvements to Clang's diagnostics
585585- For an rvalue reference bound to a temporary struct with an integer member, Clang will detect constant integer overflow
586586 in the initializer for the integer member (#GH46755).
587587
588+ - Fixed a false negative ``-Wunused-private-field `` diagnostic when a defaulted comparison operator is defined out of class (#GH116961).
589+
588590Improvements to Clang's time-trace
589591----------------------------------
590592
Original file line number Diff line number Diff line change @@ -21,14 +21,14 @@ class SpaceShipDefaultCompare {
2121};
2222
2323class EqDefaultCompareOutOfClass {
24- int used;
24+ int used; // no warning
2525 bool operator ==(const EqDefaultCompareOutOfClass &) const ;
2626};
2727
2828bool EqDefaultCompareOutOfClass::operator ==(const EqDefaultCompareOutOfClass &) const = default ;
2929
3030class FriendEqDefaultCompareOutOfClass {
31- int used;
31+ int used; // no warning
3232 friend bool operator ==(const FriendEqDefaultCompareOutOfClass &, const FriendEqDefaultCompareOutOfClass &);
3333};
3434
You can’t perform that action at this time.
0 commit comments