[Bug c++/15209] [3.4/3.5 Regression]Runs out of memory with packed structs
pinskia at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Sat May 22 19:31:00 GMT 2004
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-05-21 19:44 -------
And here is the most reduced source:
struct MD5Hash
{
MD5Hash(void) {};
void *print(void) const;
MD5Hash (const MD5Hash&);
};
struct PACKET_HEADER
{
MD5Hash setid;
} __attribute__ ((packed));
const MD5Hash& SetId(unsigned char *packetdata)
{
return ((const PACKET_HEADER*)packetdata)->setid;
}
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15209
More information about the Gcc-bugs
mailing list