[Bug c/30313] New: sizeof of expression including bit-field

s__nakayama at infoseek dot jp gcc-bugzilla@gcc.gnu.org
Thu Dec 28 02:42:00 GMT 2006


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



More information about the Gcc-bugs mailing list