------- Comment #2 from pluto at agmk dot net 2008-09-01 12:58 ------- (In reply to comment #1) > Subject: Re: New: C frontend rejects __typeof__(bitfield). > > On Mon, 1 Sep 2008, pluto at agmk dot net wrote: > > > $ cat x.c > > struct { int a:1; } bf; > > __typeof__(bf.a) clone; > > > > $ g++ -x c x.c -c > > x.c:2: error: 'typeof' applied to a bit-field > > > > this testcase was extracted from gnupg-1.4.9 sources. > > it works at least on gcc-3.2.3 (Red Hat Linux 3.2.3-53). > > If you mean to report a C bug, use component "c"; for C++, component > "c++". For C this is a deliberate change to reject typeof on bit-fields > just as sizeof is rejected on bit-fields; see bug 10333.
ok, i found the right solution: http://lists.gnupg.org/pipermail/gnupg-devel/2008-April/024344.html > Your example uses g++ and I don't know if it's a deliberate change for C++. i used the 'g++ -x c' which means C. -- pluto at agmk dot net changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution| |WONTFIX http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37311