This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/30313] New: sizeof of expression including bit-field
- From: "s__nakayama at infoseek dot jp" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 28 Dec 2006 02:42:31 -0000
- Subject: [Bug c/30313] New: sizeof of expression including bit-field
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
gcc rejects following valid code.
static inline void bar(){}
struct S
{
signed int i: 32;
};
int main()
{
struct S x = {32};
sizeof(x.i+0);
return 0;
}
gcc version: 4.2 20061212
--
Summary: sizeof of expression including bit-field
Product: gcc
Version: 4.2.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: s__nakayama at infoseek dot jp
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30313