[Bug c/14094] New: Anonymous struct initialization
roart at nvg dot ntnu dot no
gcc-bugzilla@gcc.gnu.org
Tue Feb 10 10:18:00 GMT 2004
Seen on both recent debian/unstable and gentoo
I suspect it is a bug.
gcc version 3.3.3 20040125 (prerelease) (Debian)
gcc version 3.3.2 20031218 (Gentoo Linux 3.3.2-r5, propolice-3.3-7)
How to reproduce:
/usr/bin/gcc -c fab.c
fab.c:8: error: unknown field `fab$b_fac' specified in initializer
File fab.c:
struct _fabdef {
unsigned char fab$b_bid;
struct {
unsigned char fab$b_fac;
};
};
struct _fabdef fab = { fab$b_fac : 1 };
--
Summary: Anonymous struct initialization
Product: gcc
Version: 3.3.2
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: c
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: roart at nvg dot ntnu dot no
CC: gcc-bugs at gcc dot gnu dot org
GCC build triplet: i686-pc-linux-gnu
GCC host triplet: i686-pc-linux-gnu
GCC target triplet: i686-pc-linux-gnu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14094
More information about the Gcc-bugs
mailing list