This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/38699] [4.2/4.3/4.4 regression] ICE using offsetof with array
- From: "jakub at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 2 Jan 2009 15:20:17 -0000
- Subject: [Bug c++/38699] [4.2/4.3/4.4 regression] ICE using offsetof with array
- References: <bug-38699-1771@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #1 from jakub at gcc dot gnu dot org 2009-01-02 15:20 -------
That seems invalid, not valid.
E.g. C says that for offsetof (type, member) for
static type t;
&(t.member) evaluates to an address constant, which is not the case for
const char *p; field and p[0].
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38699