From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 609D23858D28; Mon, 30 Jan 2023 23:16:15 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 609D23858D28 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1675120575; bh=LvmzVSo3Ud+ykKlTgmXVU+qq4WbgC4fueWaKw+GFQIY=; h=From:To:Subject:Date:In-Reply-To:References:From; b=IetY9qy51CXhtTEvNVvCjar4XaHcqx6INEqTpSDx+McyOdH3qo6nWS1XaYbxKR2v0 CgKSmavDTdMI0HBZZgbJMxUCie4nvBC4n4MLCwCRodX+YGBQUA+NKlncmBjQe+wLbl rKpgN+Bg7GnMmO27oC+rKAuphXur5bd0Unssk6OM= From: "jason at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/108559] [13 Regression] A new crash with using a simple class, inheritance and a function Date: Mon, 30 Jan 2023 23:16:15 +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: ABI, ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: jason at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P1 X-Bugzilla-Assigned-To: jason at gcc dot gnu.org X-Bugzilla-Target-Milestone: 13.0 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=3D108559 --- Comment #3 from Jason Merrill --- (In reply to Andrew Pinski from comment #2) > This might be related to C++ core issue cwg2403: https://wg21.link/cwg2403 Indeed. We don't expect the copy to be elided because of that issue, but we are eliding it anyway. So this is a bug caught by the added checking.=