public inbox for gcc-prs@sourceware.org help / color / mirror / Atom feed
From: Andreas Schwab <schwab@suse.de> To: gcc-gnats@gcc.gnu.org Subject: c++/7598: offsetof broken Date: Wed, 14 Aug 2002 09:04:00 -0000 [thread overview] Message-ID: <200208141547.g7EFlOwN015149@sykes.suse.de> (raw) >Number: 7598 >Category: c++ >Synopsis: offsetof broken >Confidential: no >Severity: critical >Priority: medium >Responsible: unassigned >State: open >Class: ice-on-legal-code >Submitter-Id: net >Arrival-Date: Wed Aug 14 08:56:01 PDT 2002 >Closed-Date: >Last-Modified: >Originator: >Release: 3.3 20020814 (experimental) >Organization: >Environment: System: Linux sykes 2.4.18-SMP #1 SMP Thu May 16 09:03:14 UTC 2002 ia64 unknown unknown GNU/Linux Architecture: ia64 host: ia64-suse-linux-gnu build: ia64-suse-linux-gnu target: ia64-suse-linux-gnu configured with: ../configure --host=ia64-suse-linux --enable-shared --enable-threads --with-system-zlib >Description: The C++ compiler cannot handle offsetof. >How-To-Repeat: $ cat offsetof.cc typedef long unsigned int size_t; struct sigcontext { unsigned long int sc_gr[32]; }; typedef struct ucontext { union { struct { unsigned long _pad[((size_t) &((struct sigcontext *)0)->sc_gr[0])]; } _uc; } _u; } ucontext_t; $ /tmp/cvs/gcc-20020814/Build/gcc/xgcc -B/tmp/cvs/gcc-20020814/Build/gcc/ -S offsetof.cc -v Reading specs from /tmp/cvs/gcc-20020814/Build/gcc/specs Configured with: ../configure --host=ia64-suse-linux --enable-shared --enable-threads --with-system-zlib Thread model: posix gcc version 3.3 20020814 (experimental) /tmp/cvs/gcc-20020814/Build/gcc/cc1plus -quiet -v -iprefix /tmp/cvs/gcc-20020814/Build/gcc/../lib/gcc-lib/ia64-suse-linux/3.3/ -isystem /tmp/cvs/gcc-20020814/Build/gcc/include -D__GNUC__=3 -D__GNUC_MINOR__=3 -D__GNUC_PATCHLEVEL__=0 -D__gnu_linux__ -D__linux -D__linux__ -D_LONGLONG -Dlinux -Dunix -D__gnu_linux__ -D__linux -D__linux__ -D_LONGLONG -D__linux__ -D__unix__ -D__linux -D__unix -Asystem=linux -D_GNU_SOURCE -Acpu=ia64 -Amachine=ia64 -D__ia64 -D__ia64__ -D_LP64 -D__LP64__ -D__ELF__ offsetof.cc -D__GNUG__=3 -quiet -dumpbase offsetof.cc -auxbase offsetof -version -o offsetof.s GNU C++ version 3.3 20020814 (experimental) (ia64-suse-linux) compiled by GNU C version 3.3 20020814 (experimental). ignoring nonexistent directory "/tmp/cvs/gcc-20020814/Build/lib/gcc-lib/ia64-suse-linux/3.3/../../../../include/c++/3.3" ignoring nonexistent directory "/tmp/cvs/gcc-20020814/Build/lib/gcc-lib/ia64-suse-linux/3.3/../../../../include/c++/3.3/ia64-suse-linux" ignoring nonexistent directory "/tmp/cvs/gcc-20020814/Build/lib/gcc-lib/ia64-suse-linux/3.3/../../../../include/c++/3.3/backward" ignoring nonexistent directory "/tmp/cvs/gcc-20020814/Build/lib/gcc-lib/ia64-suse-linux/3.3/include" ignoring nonexistent directory "/tmp/cvs/gcc-20020814/Build/lib/gcc-lib/ia64-suse-linux/3.3/../../../../ia64-suse-linux/include" ignoring nonexistent directory "/usr/local/include/c++/3.3" ignoring nonexistent directory "/usr/local/include/c++/3.3/ia64-suse-linux" ignoring nonexistent directory "/usr/local/include/c++/3.3/backward" ignoring nonexistent directory "NONE/include" ignoring nonexistent directory "/usr/local/lib/gcc-lib/ia64-suse-linux/3.3/include" ignoring nonexistent directory "/usr/local/ia64-suse-linux/include" #include "..." search starts here: #include <...> search starts here: /tmp/cvs/gcc-20020814/Build/gcc/include /usr/local/include /usr/include End of search list. offsetof.cc:12: error: size of member `_pad' is not constant >Fix: >Release-Note: >Audit-Trail: >Unformatted:
next reply other threads:[~2002-08-14 15:56 UTC|newest] Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top 2002-08-14 9:04 Andreas Schwab [this message] 2002-08-14 9:06 nathan 2002-08-15 4:44 nathan
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=200208141547.g7EFlOwN015149@sykes.suse.de \ --to=schwab@suse.de \ --cc=gcc-gnats@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).