From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 928B53838F14; Tue, 13 Dec 2022 18:45:48 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 928B53838F14 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1670957148; bh=BHNnLjLHG2uC/YQ/H8zOdcveZaTEpE3qjN92z12Oins=; h=From:To:Subject:Date:In-Reply-To:References:From; b=K/PMcQm/HD0GVTElaV4ib9U3CsYBH+uz0wPm4syZuv3SZBcCVZjJLBlFRBAmOrO9J FdvsA6PC4z1xTB/416f9GyOYuWwWhBjQNldKGqxt/umWmPa98ockL9D5zdoBculCLL xhByIJ1f3oG81Druirr9162ulUFKK6cEphQhb73A= From: "sam at gentoo dot org" To: gcc-rust@gcc.gnu.org Subject: [Bug rust/108087] -Wodr warnings in rust/rust-lang.cc (lang_type) Date: Tue, 13 Dec 2022 18:45:48 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: rust X-Bugzilla-Version: 13.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: sam at gentoo dot org 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: 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=3D108087 --- Comment #1 from Sam James --- Sorry, output got mangled slightly by ansifiltering: ``` /var/tmp/portage/sys-devel/gcc-13.0.9999/work/gcc-13.0.9999/gcc/rust/rust-l= ang.cc:67:17: warning: type =E2=80=98struct lang_type=E2=80=99 violates the C++ One Defin= ition Rule [-Wodr] 67 | struct GTY (()) lang_type | ^ /var/tmp/portage/sys-devel/gcc-13.0.9999/work/gcc-13.0.9999/gcc/rust/backen= d/rust-tree.h:234: note: a different type is defined in another translation unit 234 | struct GTY (()) lang_type | /var/tmp/portage/sys-devel/gcc-13.0.9999/work/gcc-13.0.9999/gcc/rust/backen= d/rust-tree.h:236: note: the first difference of corresponding definitions is field =E2=80=98a= lign=E2=80=99 236 | unsigned char align; | /var/tmp/portage/sys-devel/gcc-13.0.9999/work/gcc-13.0.9999/gcc/rust/backen= d/rust-tree.h:234: note: a type with different number of fields is defined in another translat= ion unit 234 | struct GTY (()) lang_type | ``` --=20 You are receiving this mail because: You are on the CC list for the bug.=