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:16:36 -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:16 -------
I've modified the code slightly and I'm attaching the generated assembly code
from : /local/gcc-3.3.3/bin/g++ -o test.S test.cpp -S -march=i386
You can see where the problem is :
there are three functions :
_ZNK1X1xEv
_ZNK1X1zEv
_ZNK1Y1yEv
You can see that at labels .LCFI3 and .LCFI4 there are calls to and _ZNK1X1zEv
and _ZNK1Y1yEv, respectively (i.e. X::x, and X::z, and Y::y). This corresponds
to the first assertion.
Around label .L3, there are only calls to _ZNK1X1xEv and _ZNK1Y1yEv, which means
the call to X::z is omitted in the second assertion.
Any ideas what this problem might be? I did build the compiler with gcc from
SuSe's 9.0 distribution. Could this have caused this problem?
I have to say that with the old SuSe8.2 this worked for me, so I suspect suse to
be the root cause.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13239