From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 439CC3858D28; Thu, 28 Mar 2024 20:17:38 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 439CC3858D28 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1711657058; bh=zq/yVQpQPL1w3EcUCHpB7MK9ISoW3MygI4RSbfgp8N4=; h=From:To:Subject:Date:In-Reply-To:References:From; b=s/3lzI6GMd0AldmcoHCG6DR49M8xSt9CNGH9KvLY1NaOevFvj6Fltzag0Zo0Nr7of WlkLUgkoF3pPPRLJFe2dIlvRO1cTsAPo41LxHd5YHRaJeJAZQL8QI6BIfNHWqvlhB+ JtWYawasX+DRu64r9iWKK5N5VW/1BaMTb9KyZhlg= From: "pinskia at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/114525] Incorrect code generated when setting a value through a pointer-to-member on a ternary returning an object reference Date: Thu, 28 Mar 2024 20:17:37 +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: 14.0 X-Bugzilla-Keywords: wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: pinskia at gcc dot gnu.org 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: bug_status everconfirmed cf_reconfirmed_on 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=3D114525 Andrew Pinski changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Ever confirmed|0 |1 Last reconfirmed| |2024-03-28 --- Comment #1 from Andrew Pinski --- Confirmed. (void) (*((int *) &(cond ? *get ((struct Foo &) &v) : *get ((struct Foo= &) &v)) + (sizetype) 0) =3D 2) >>>>>; Notice the * there.=