From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id D999C3858C41; Wed, 28 Jun 2023 21:31:07 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org D999C3858C41 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1687987867; bh=HoP83j2pSy08BIUCYEWVbx4DfUZH4OManJae3bTkBOQ=; h=From:To:Subject:Date:In-Reply-To:References:From; b=yVppzyr06cqMupnip5eRo2H+qSMMXy8kGM6SqYy9yJD6Pq3HDT9E/HKqT+D5+3pd4 E+48cRwO/92Km7JSzHBBDKoTeRViQk/X8s20h3oEl7wVymYPHTEqmcmpWLyaBbaSMX G18fBpknbGiI1pOdkRSXgJjiNoqjCTVYp7i9PwwM= From: "mpolacek at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/78632] Produce warning when a derived class shadows a field of the base class with `-Wshadow` Date: Wed, 28 Jun 2023 21:31:07 +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: 7.0 X-Bugzilla-Keywords: diagnostic X-Bugzilla-Severity: normal X-Bugzilla-Who: mpolacek at gcc dot gnu.org 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: 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 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D78632 --- Comment #5 from Marek Polacek --- Looks like clang++ has -Wshadow-field for this.=