This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: dynamic cast bug.
- To: kenelson at ece dot ucdavis dot edu
- Subject: Re: dynamic cast bug.
- From: "Martin v. Loewis" <martin at loewis dot home dot cs dot tu-berlin dot de>
- Date: Sun, 25 Jun 2000 22:58:33 +0200
- CC: gcc-bugs at gcc dot gnu dot org, kenelson at elm dot ece dot ucdavis dot edu
- References: <200006250005.RAA00102@elm.ece.ucdavis.edu>
> dynamic_cast with during a constructor when the base class
> uses virtual inheritance and a derived class uses multiple inheritance
> yields an incorrect result.
Thanks for your bug report. This is a known bug in the vtable-thunks
implementation; calling virtual functions in a constructor of a class
with virtual bases may result in incorrect `this' pointers. The bug is
Linux-specific in the sense that vtable thunks are used only on Linux;
it will be corrected in the new ABI of gcc 3.
I'm not sure what you meant when you said you tested it with gcc
2.95.3; there is no such release. The 2.95.3 mainline should have this
bug fixed.
Regards,
Martin