This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/15209] [3.4/3.5 Regression]Runs out of memory with packed structs
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 21 May 2004 19:44:12 -0000
- Subject: [Bug c++/15209] [3.4/3.5 Regression]Runs out of memory with packed structs
- References: <20040429194010.15209.bangerth@dealii.org>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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