This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: invalid assembly generated for packed struct containing unpacked struct
- To: gcc-bugs at gcc dot gnu dot org, tonym at netpro dot com
- Subject: Re: invalid assembly generated for packed struct containing unpacked struct
- From: Mike Stump <mrs at windriver dot com>
- Date: Tue, 6 Jun 2000 20:34:42 -0700 (PDT)
> From: Tony Minkoff <tonym@netpro.com>
> To: "'gcc-bugs@gcc.gnu.org'" <gcc-bugs@gcc.gnu.org>
> Date: Tue, 6 Jun 2000 17:20:45 -0700
> I do not have the gccbug script, so I'm just sending you the text of a
> report. The class is "c++", and the category is "wrong-code."
> I'm not sure whether you'll consider it a compiler bug, but here goes.
It seems like a bug to me.
For now, you can work around it by doing:
struct SBar
{
long m_l;
} __attribute__ ((packed));
:-(