From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 7F2AA3858D1E; Fri, 13 Oct 2023 07:54:19 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 7F2AA3858D1E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1697183659; bh=edhOWJedY+7axdxcv1aqzxPgZo0wYEzOlipjL/9YC14=; h=From:To:Subject:Date:In-Reply-To:References:From; b=VNWgJiehXhMmt6dLg0CZyaqpr4U0+7AYTBzvEgoafH5GT0y+sVzUu+5jF2jAqPNwW pfc87vCaPgFDsmrPHF/vlNwaYT1DkhbcGPuUPgl3uamvI/NCFpSgJ5wBwcza9NhDzP s92gKKGoR9qOEZY3paFBATeVXHaE1+qBia5CdrZw= From: "leni536 at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/111776] ICE on delete expression with multiple viable destroying operator delete Date: Fri, 13 Oct 2023 07:54:19 +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.2.0 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: leni536 at gmail 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: 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=3D111776 --- Comment #2 from L=C3=A9n=C3=A1rd Szolnoki --- Same ICE without destroying delete: ``` struct A { void operator delete(void *); }; struct B { void operator delete(void *); }; struct C : A, B { using A::operator delete; using B::operator delete; }; void f(C* ptr) { delete ptr; } ``` This goes back to GCC 7. GCC 6 accepts it and calls `A::operator delete`, which is not much better. https://godbolt.org/z/cczfdKoqb=