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 tree-optimization/21081] [4.1 Regression] internal compiler error: verify_stmts failed.


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


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