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/20458] [4.1 regression] structure aliasing causes wrong code


------- Additional Comments From belyshev at depni dot sinp dot msu dot ru  2005-03-13 19:10 -------
even smaller testcase:
------------------------------------------------------------------------------
namespace std
{
  class locale
  {
  public:
    locale();
    ~locale();
  };
}

struct B
{
  std::locale _M_buf_locale;
  virtual ~B() {}
};

struct C : public B
{
  char *s;
};

void foo ()
{
  C c;
}

int main()
{
  foo ();
  return 0;
}
------------------------------------------------------------------------------

-- 


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


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