This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/13648] New: [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:27:37 -0000
- Subject: [Bug c++/13648] New: [tree-ssa] offsetof() with a nested struct member fails to compile in a constant-expression
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
This appears to be a new regression on the tree-ssa branch. Writing:
const int i = offsetof(A, b.c);
gives this error:
error: `.' cannot appear in a constant-expression
The problem also appears to be C++-specific.
--
Summary: [tree-ssa] offsetof() with a nested struct member fails
to compile in a constant-expression
Product: gcc
Version: tree-ssa
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: bryner at brianryner dot com
CC: gcc-bugs at gcc dot gnu dot org
GCC host triplet: i686-pc-linux-gnu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13648