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