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]

Re: dynamic cast bug.


> 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

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