This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/27898] New: Compile failure with --combine and anonymous structures
- From: "dwmw2 at infradead dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 5 Jun 2006 09:55:37 -0000
- Subject: [Bug c/27898] New: Compile failure with --combine and anonymous structures
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
$ cat foobar.c
union u {
struct {
int i;
};
};
extern int somefunc(union u *);
$ gcc --combine -c foobar.c foobar.c
foobar.c:8: error: conflicting types for 'somefunc'
foobar.c:8: error: previous declaration of 'somefunc' was here
gcc version 4.1.0 20060304 (Red Hat 4.1.0-3)
Happens on both PowerPC and i386. If the internal structure is made
non-anonymous, it compiles.
--
Summary: Compile failure with --combine and anonymous structures
Product: gcc
Version: 4.1.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: dwmw2 at infradead dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27898