This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/13239] [3.3 REGRESSION] Assertion does not seem to work correctly anymore
- From: "rmerkert at alphatech dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 2 Dec 2003 03:13:08 -0000
- Subject: [Bug c++/13239] [3.3 REGRESSION] Assertion does not seem to work correctly anymore
- References: <20031130163447.13239.rmerkert@alphatech.com>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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