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++/13239] [3.3 REGRESSION] Assertion does not seem to work correctly anymore


------- Additional Comments From rmerkert at alphatech dot com  2003-12-02 03:13 -------
Created an attachment (id=5262)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=5262&action=view)
Assembly code

This assembly code was generated from this example:

#include <assert.h>

struct Y {
  Y () : _y(0) {}
  int _y;
  int y () const  { return _y; }

};

struct X {
  X () {}

  Y _y;

  int x() const { return 1; }
  Y z() const { return _y; }

};


int main()
{
  X x;
  assert (x.z().y()==0);
  assert (((x.x()==1) && (x.z().y()==0)) );
  return 0;
}


-- 


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


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