invalid assembly generated for packed struct containing unpacked struct

Mike Stump mrs@windriver.com
Tue Jun 6 20:34:00 GMT 2000


> 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));

:-(


More information about the Gcc-bugs mailing list