This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug other/37311] New: C frontend rejects __typeof__(bitfield).
- From: "pluto at agmk dot net" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 1 Sep 2008 11:14:10 -0000
- Subject: [Bug other/37311] New: C frontend rejects __typeof__(bitfield).
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
$ 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).
--
Summary: C frontend rejects __typeof__(bitfield).
Product: gcc
Version: 4.3.2
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: other
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: pluto at agmk dot net
GCC target triplet: *-gnu-linux
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37311