public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "tristan_schmelcher at alumni dot uwaterloo dot ca" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/27941] offsetof produces possibly erroneous warnings Date: Sun, 08 Jun 2008 01:41:00 -0000 [thread overview] Message-ID: <20080608014103.23738.qmail@sourceware.org> (raw) In-Reply-To: <bug-27941-12798@http.gcc.gnu.org/bugzilla/> ------- Comment #2 from tristan_schmelcher at alumni dot uwaterloo dot ca 2008-06-08 01:41 ------- Just a note for posterity: Using offsetof in this particular case (and many others) will work in G++, but the standard doesn't require that, so in theory it's not portable. That's why G++ prints a warning. You can suppress it with -Wno-invalid-offsetof. -- tristan_schmelcher at alumni dot uwaterloo dot ca changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |tristan_schmelcher at alumni | |dot uwaterloo dot ca http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27941
prev parent reply other threads:[~2008-06-08 1:41 UTC|newest] Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top 2006-06-07 22:43 [Bug c++/27941] New: " casey dot shaar at pkinetics dot com 2006-06-07 22:44 ` [Bug c++/27941] " pinskia at gcc dot gnu dot org 2008-06-08 1:41 ` tristan_schmelcher at alumni dot uwaterloo dot ca [this message]
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=20080608014103.23738.qmail@sourceware.org \ --to=gcc-bugzilla@gcc.gnu.org \ --cc=gcc-bugs@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: linkBe 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).