From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id DFEF83857BB6; Fri, 15 Jul 2022 06:38:52 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org DFEF83857BB6 From: "dcb314 at hotmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/84695] Missed opportunity to issue warning about override [-Winconsistent-missing-override] Date: Fri, 15 Jul 2022 06:38:52 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 8.0 X-Bugzilla-Keywords: diagnostic X-Bugzilla-Severity: enhancement X-Bugzilla-Who: dcb314 at hotmail dot com X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 15 Jul 2022 06:38:53 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D84695 David Binderman changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |dcb314 at hotmail dot com --- Comment #3 from David Binderman --- Interestingly, gcc trunk source code produces this warning when compiled by clang: $ fgrep Winco /tmp/0 | sort | uniq -c 1 ../../trunk.git/gcc/analyzer/region-model.cc:3007:8: warning: 'visit_unaryop_svalue' overrides a member function but is not marked 'overr= ide' [-Winconsistent-missing-override] 1 ../../trunk.git/gcc/analyzer/region-model.cc:3031:8: warning: 'visit_repeated_svalue' overrides a member function but is not marked 'override' [-Winconsistent-missing-override] 2 ../../trunk.git/gcc/config/i386/i386-features.h:184:8: warning: 'convert_op' overrides a member function but is not marked 'override' [-Winconsistent-missing-override] 2 ../../trunk.git/gcc/config/i386/i386-features.h:199:8: warning: 'convert_op' overrides a member function but is not marked 'override' [-Winconsistent-missing-override] 11 ../../trunk.git/gcc/value-range-equiv.h:57:8: warning: 'set_undefin= ed' overrides a member function but is not marked 'override' [-Winconsistent-missing-override] 11 ../../trunk.git/gcc/value-range-equiv.h:58:8: warning: 'set_varying' overrides a member function but is not marked 'override' [-Winconsistent-missing-override] 11 ../../trunk.git/gcc/value-range-equiv.h:68:8: warning: 'dump' overr= ides a member function but is not marked 'override' [-Winconsistent-missing-override] $=20 A couple in the analyzer, a couple in the i386 machine specific code and 3 in value-range-equiv.h.=20 Might be worth fixing ?=