From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 4EC6A3858D37; Thu, 9 Nov 2023 06:35:33 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 4EC6A3858D37 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1699511733; bh=JjsAWS+81dDgiXQ+nzgLCT2MH0amLbrC5sqcqwE8iS0=; h=From:To:Subject:Date:In-Reply-To:References:From; b=TPM7+K+7o6Qxd7K9Nx1RQHWqTWUsUQ8u6JuC/NyLKBCATY+Rgz9ZlRT13Teg1I83/ HKyFxEjSh7tk98MVci4GDWPV9E3W9eTObOvvYr2fCRwnLYvGRIRoLgh8pi2yDIj6aQ cHj7U8wkP1UeVAfpUXFA5tNMSNTfATqkrQmWIzzQ= From: "pinskia at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/52339] using delete ptr1->ptr2 where ptr2 destructor deletes a const ptr1 fails Date: Thu, 09 Nov 2023 06:35:32 +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: 4.6.2 X-Bugzilla-Keywords: wrong-code X-Bugzilla-Severity: major X-Bugzilla-Who: pinskia 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=3D52339 --- Comment #10 from Andrew Pinski --- (In reply to Jakub Jelinek from comment #7) > Created attachment 54994 [details] > gcc14-pr52339.patch >=20 > Untested fix. I think this might fix PR 108789 too ...=