From: "sam at gentoo dot org" <gcc-bugzilla@gcc.gnu.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 [thread overview]
Message-ID: <bug-108087-35322-JTPGFvM32Z@http.gcc.gnu.org/bugzilla/> (raw)
In-Reply-To: <bug-108087-35322@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108087
--- Comment #1 from Sam James <sam at gentoo dot org> ---
Sorry, output got mangled slightly by ansifiltering:
```
/var/tmp/portage/sys-devel/gcc-13.0.9999/work/gcc-13.0.9999/gcc/rust/rust-lang.cc:67:17:
warning: type ‘struct lang_type’ violates the C++ One Definition Rule [-Wodr]
67 | struct GTY (()) lang_type
| ^
/var/tmp/portage/sys-devel/gcc-13.0.9999/work/gcc-13.0.9999/gcc/rust/backend/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/backend/rust-tree.h:236:
note: the first difference of corresponding definitions is field ‘align’
236 | unsigned char align;
|
/var/tmp/portage/sys-devel/gcc-13.0.9999/work/gcc-13.0.9999/gcc/rust/backend/rust-tree.h:234:
note: a type with different number of fields is defined in another translation
unit
234 | struct GTY (()) lang_type
|
```
--
You are receiving this mail because:
You are on the CC list for the bug.
next prev parent reply other threads:[~2022-12-13 18:45 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-12-13 18:44 [Bug rust/108087] New: " sam at gentoo dot org
2022-12-13 18:45 ` sam at gentoo dot org [this message]
2022-12-13 18:46 ` [Bug rust/108087] " sam at gentoo dot org
2022-12-13 19:02 ` pinskia at gcc dot gnu.org
2022-12-14 8:49 ` marxin at gcc dot gnu.org
2022-12-14 9:44 ` arthur.cohen at embecosm dot com
2022-12-14 14:52 ` cohenarthur at gcc dot gnu.org
2022-12-14 14:53 ` cohenarthur at gcc dot gnu.org
2022-12-14 14:59 ` tschwinge at gcc dot gnu.org
2024-08-01 23:10 ` sjames at gcc dot gnu.org
2024-08-02 1:20 ` sjames at gcc dot gnu.org
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=bug-108087-35322-JTPGFvM32Z@http.gcc.gnu.org/bugzilla/ \
--to=gcc-bugzilla@gcc.gnu.org \
--cc=gcc-rust@gcc.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).