From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 3A281384DECF; Thu, 11 Jan 2024 20:55:44 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 3A281384DECF DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1705006544; bh=bD8qbBTUcOEgGUNLoeTzDB0M9Eil+slEUEpdP5amLPc=; h=From:To:Subject:Date:From; b=gRK7GZ0QDcOxVr4i+6DOCpEgl0T0uq6lfC3gwWAVWMbGQ+Nu+sRv8RmL7OUcklzpo /lCYT/ilzz67c4aqG8LKEibIiu9Jb+uLXzQyxgpsLLKis5Dbk3uxpr0J8iLIbi5IbT MEkUr1j88GZc9PALLombuYFl9rqDRLoDlA1Yqf48= From: "friedkeenan at protonmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/113340] New: ICE when an explicit object parameter is attempted to be used in a destructor Date: Thu, 11 Jan 2024 20:55:43 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 14.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: friedkeenan at protonmail dot com 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: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: 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=3D113340 Bug ID: 113340 Summary: ICE when an explicit object parameter is attempted to be used in a destructor Product: gcc Version: 14.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: friedkeenan at protonmail dot com Target Milestone: --- GCC segfaults on the following code: struct S { ~S(this S &) =3D default; }; Godbolt link: https://godbolt.org/z/G6rq3ra6W It should be noted that explicit object parameters are not allowed for destructors in the first place, but nonetheless an ICE should not occur whe= n it is attempted.=