Skip to content

Commit 63a93ba

Browse files
committed
Update release notes
1 parent 935aa2e commit 63a93ba

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

clang/docs/ReleaseNotes.rst

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -583,6 +583,20 @@ Improvements to Clang's diagnostics
583583
- For an rvalue reference bound to a temporary struct with an integer member, Clang will detect constant integer overflow
584584
in the initializer for the integer member (#GH46755).
585585

586+
- Fixed a bug where Clang would not emit ``-Wunused-private-field`` warnings when an unrelated class
587+
defined a defaulted comparison operator (#GH116270).
588+
589+
.. code-block:: c++
590+
591+
class A {
592+
private:
593+
int a; // warning: private field 'a' is not used, no diagnostic previously
594+
};
595+
596+
class C {
597+
bool operator==(const C&) = default;
598+
};
599+
586600
Improvements to Clang's time-trace
587601
----------------------------------
588602

0 commit comments

Comments
 (0)