From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 602D63858D37; Tue, 14 Mar 2023 15:19:39 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 602D63858D37 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1678807179; bh=jNc4BQk+1IfPS8oXmOYJmlb6gnXO/J9PNy91rPb+I6E=; h=From:To:Subject:Date:In-Reply-To:References:From; b=c2h4MZh+eCTHb33unsAyyACTIMcRNCSPIoveR4RqZZwxTu/CfuGB2ykgsupgnRwLm FGcW95bWZ9GfXQ/JwmfoPKG0ogTpIN0nr9WDcrFauAOH17EVTZxyQjMbN0rIAYN+Xl 1DDVWJ6wI9ysamVob7GcNRM02BkOlugj6l+caqv0= From: "cvs-commit at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/109096] __has_unique_object_representations does not account for unnamed bitfield Date: Tue, 14 Mar 2023 15:19:39 +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: wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: cvs-commit at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: jakub at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- 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=3D109096 --- Comment #4 from CVS Commits --- The master branch has been updated by Jakub Jelinek : https://gcc.gnu.org/g:c35cf160a0ed81570cff6600dba465cf95fa80fa commit r13-6663-gc35cf160a0ed81570cff6600dba465cf95fa80fa Author: Jakub Jelinek Date: Tue Mar 14 16:17:32 2023 +0100 c++: Treat unnamed bitfields as padding for __has_unique_object_representations [PR109096] As reported in the PR, for __has_unique_object_representations we were treating unnamed bitfields as named ones, which is wrong, they are actually padding. THe following patch fixes that. 2023-03-14 Jakub Jelinek PR c++/109096 * tree.cc (record_has_unique_obj_representations): Ignore unnam= ed bitfields. * g++.dg/cpp1z/has-unique-obj-representations3.C: New test.=