This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/13648] [tree-ssa] offsetof() with a nested struct member fails to compile in a constant-expression


------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]