------- Additional Comments From pinskia at gcc dot gnu dot org 2005-04-20 00:08 ------- Do you know if this also works with the 4.0 branch?
Reduced testcase: class wxString; extern __attribute__((dllimport)) char* wxEmptyString; struct wxString {}; inline wxString& wxGetEmptyString() { return *(wxString *)&wxEmptyString; } wxString GetHeader() { return wxGetEmptyString(); } This is very target dependent as the __attribute__ is which is causing the problem. -- What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Ever Confirmed| |1 Last reconfirmed|0000-00-00 00:00:00 |2005-04-20 00:08:40 date| | http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21081