From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 8AB13384D1A7; Wed, 7 Sep 2022 08:24:18 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 8AB13384D1A7 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1662539058; bh=id8vMYtPiSMo5qFA6vUAGcC55cfG/ElNimePkJ7fuGI=; h=From:To:Subject:Date:In-Reply-To:References:From; b=BSZVRNdjivJVdo4xGgLThL7Z5BinsKA9QZ0YE3WtAW2jnj8BikMM/XI3d9rmnQUzQ ft+n6v3kLce0w0aHeYLoBAtM0aQnWD51/OKjaTVH6oa1GS/UaDzKepCpMT2kHW/jsR 4hv2xuhB0X5b+LX0pJ1CvYCbAqCwFBd9vpZnDUBw= From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/106847] deprecated class data member makes the class generate diagnostics even when the member is not used Date: Wed, 07 Sep 2022 08:24:18 +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: 13.0 X-Bugzilla-Keywords: diagnostic X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenth at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED 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: keywords 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=3D106847 Richard Biener changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |diagnostic --- Comment #2 from Richard Biener --- Well, you did use it by copying it? Specify a copy CTOR that does not copy= 'x' and you'll be fine?=