This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/34800] New: Compile failure with --combine and a union with an anonymous struct
- From: "alexandre dot nunes at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 15 Jan 2008 17:54:31 -0000
- Subject: [Bug c/34800] New: Compile failure with --combine and a union with an anonymous struct
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
$ cat pqp.c
typedef union {
struct
{
unsigned char d;
};
unsigned char a, b;
} test_type;
extern test_type whatever;
$ gcc -c pqp.c
$ gcc --combine -c pqp.c pqp.c
pqp.c:9: error: conflicting types for ?whatever?
pqp.c:9: error: previous declaration of ?whatever? was here
This seems like a more strict case of bug 28706 or something.
--
Summary: Compile failure with --combine and a union with an
anonymous struct
Product: gcc
Version: 4.2.2
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: alexandre dot nunes at gmail dot com
GCC host triplet: i686-unknow-linux
GCC target triplet: arm-elf
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34800