Bug 14094 - Anonymous struct initialization
Summary: Anonymous struct initialization
Status: RESOLVED DUPLICATE of bug 10676
Alias: None
Product: gcc
Classification: Unclassified
Component: c (show other bugs)
Version: 3.3.2
: P2 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-02-10 10:18 UTC by roart
Modified: 2005-07-23 22:49 UTC (History)
1 user (show)

See Also:
Host: i686-pc-linux-gnu
Target: i686-pc-linux-gnu
Build: i686-pc-linux-gnu
Known to work:
Known to fail:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description roart 2004-02-10 10:18:16 UTC
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 };
Comment 1 Andrew Pinski 2004-02-10 11:15:59 UTC
This is a dup of bug 10676.

*** This bug has been marked as a duplicate of 10676 ***