File tree Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Original file line number Diff line number Diff 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+
586600Improvements to Clang's time-trace
587601----------------------------------
588602
You can’t perform that action at this time.
0 commit comments