public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug pending/31709] New: combine and __attributes__((__packed__)) conflict.
@ 2007-04-26 1:46 matt at 3am-software dot com
0 siblings, 0 replies; only message in thread
From: matt at 3am-software dot com @ 2007-04-26 1:46 UTC (permalink / raw)
To: gcc-bugs
a.c:
struct f { int i; } __attribute__((__packed__));
const char *foo(struct f *);
b.c:
struct f;
const char *foo(struct f *);
c.c (identical to a.c):
struct f { int i; } __attribute__((__packed__));
const char *foo(struct f *);
gcc -fsyntax-only -combine -ffreestanding a.c b.c c.c
c.c:3: error: conflicting types for 'foo'
b.c:3: error: previous declaration of 'foo' was here
There is no difference even if b.c includes attribute((__packed__)). Changing
the order such that b.c is either first or last suppresses the error.
--
Summary: combine and __attributes__((__packed__)) conflict.
Product: gcc
Version: 4.1.2
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: pending
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: matt at 3am-software dot com
GCC build triplet: x86_64--netbsd
GCC host triplet: x86_64--netbsd
GCC target triplet: x86_64--netbsd
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31709
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2007-04-26 1:46 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-04-26 1:46 [Bug pending/31709] New: combine and __attributes__((__packed__)) conflict matt at 3am-software dot com
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).