dynamic cast bug.

Martin v. Loewis martin@loewis.home.cs.tu-berlin.de
Sun Jun 25 14:04:00 GMT 2000


> 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


More information about the Gcc-bugs mailing list