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.

Okay, I didn't see it on the list of well known bugs and it is pretty
devistating to my application so I thought I should send it in.
Hmm, how could it be Linux specific if the bug appears on Sun, HPUX and
IRIX systems running the native OS?  Or maybe I don't understand what you 
mean by Linux-specific.

 
> 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. 

One person checked my bug report using a nightly build from a short time
ago.  Thus I would assume that you should verify against your latest
code to make sure it is fixed.  :-)

Note, that one person also reported this same bug occuring in MSVC++ 6.0.
I am still trying to verify it.  It would be very odd if it did.

Thanks for the quick response.

--Karl

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