[Bug c/34800] New: Compile failure with --combine and a union with an anonymous struct
alexandre dot nunes at gmail dot com
gcc-bugzilla@gcc.gnu.org
Tue Jan 15 18:01:00 GMT 2008
$ 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
More information about the Gcc-bugs
mailing list