This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/13648] [tree-ssa] offsetof() with a nested struct member fails to compile in a constant-expression
- From: "bryner at brianryner dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 11 Jan 2004 21:29:10 -0000
- Subject: [Bug c++/13648] [tree-ssa] offsetof() with a nested struct member fails to compile in a constant-expression
- References: <20040111212735.13648.bryner@brianryner.com>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From bryner at brianryner dot com 2004-01-11 21:29 -------
Created an attachment (id=5458)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=5458&action=view)
testcase
$ c++ -c -o test_offsetof.o test_offsetof.cpp
test_offsetof.cpp:11: error: `.' cannot appear in a constant-expression
$ c++ -v
Reading specs from /usr/gcc-ssa/lib/gcc/i686-pc-linux-gnu/3.5-tree-ssa/specs
Configured with: ../gcc/configure --prefix=/usr/gcc-ssa --enable-shared
--enable-threads=posix --disable-checking --with-system-zlib
--enable-__cxa_atexit --enable-languages=c,c++ --host=i686-pc-linux-gnu
Thread model: posix
gcc version 3.5-tree-ssa 20040110 (merged 20040102)
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13648