From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 7F3E23858D28; Thu, 26 Jan 2023 12:22:36 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 7F3E23858D28 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1674735756; bh=beHMr635SP3Zovny74wC0dT3Medy5XBlOBq1pNhZ/Gg=; h=From:To:Subject:Date:From; b=WgWc4ovrW878hBFuJjS+VJl974xj3lSQ5QPGA39AJ5OBWmGe3A+P9hoU81EPLW4J7 NPNVgTKHtY19hjLS63SXKq2/KiQu0o8BcMjVw1KeKRXJO1B4LgXremdVOxMY6iYzmn c5hybVZ8lew2Y/aotfMI0PX6UgfBR8NRkLf9x9+Y= From: "zakkariusr at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/108559] New: A new crash with using a simple class, inheritance and a function Date: Thu, 26 Jan 2023 12:22:36 +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: 13.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: zakkariusr at gmail 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=3D108559 Bug ID: 108559 Summary: A new crash with using a simple class, inheritance and a function Product: gcc Version: 13.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: zakkariusr at gmail dot com Target Milestone: --- The following code: struct A { int g =3D 0; A() {} A(const A&) {} }; struct B : A {}; A u() { return A{}; } int bug() { return B{u()}.g; } int main() { return 0; } causes a compiler crash on the current gcc(trunk) 13.0=