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++/18676] ice


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-11-25 22:27 -------
Note this was the reduced testcase I got:
struct MD5Hash
{
  MD5Hash(void) {};
  MD5Hash(const MD5Hash &other);
  char hash[16];
};

struct PACKET_HEADER
{
    MD5Hash setid __attribute__ ((packed));
};
struct MAINPACKET
{
    PACKET_HEADER header __attribute__ ((packed));
};
struct  MainPacket
{
  char *packetdata;
  const MD5Hash& SetId(void) const;
};
const MD5Hash& MainPacket::SetId(void) const
{
  return ((const MAINPACKET*)packetdata)->header.setid;
}

-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18676


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