From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id A7D293858414; Sat, 24 Jun 2023 07:18:00 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org A7D293858414 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1687591080; bh=yuqwQjir4RJq3P9UJtLpFq1kUk3h9SCQxMaxYAI/u0U=; h=From:To:Subject:Date:In-Reply-To:References:From; b=abtnQcRaQjk0iVa6xD4AfZvyClQAWA7/nNmpRnp8kFcKXVnD70tnI7rd3zbK3+N28 Kst2CwNq6tq2fSva4Ah1EQ/QtCEJs5xCBWExOYXh4hbYeUDRzHIRfFSKAL2bPdzTYy HmBczsVcN4QmtaB15VtWNJM1yNfbi3NbjO0ABALI= From: "pinskia at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/110375] -ftrivial-auto-var-init=zero issues with pointers to data members Date: Sat, 24 Jun 2023 07:17:59 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: middle-end X-Bugzilla-Version: 13.1.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: pinskia at gcc dot gnu.org X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: WONTFIX 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_status resolution 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=3D110375 Andrew Pinski changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution|--- |WONTFIX --- Comment #1 from Andrew Pinski --- The code is undefined, the point to initialize it something which might be = safe enough for most cases. Yes in the case of pointer to data members, it is not the same as null but that is ok, it is still intialized to something.=