This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/15209] [3.4/3.5 Regression]Runs out of memory with packed structs


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]