Problem with virtual inheritance and virtual functions

Martin v. Loewis martin@loewis.home.cs.tu-berlin.de
Tue Feb 29 00:34:00 GMT 2000


> Note that this program works correctly with g++ 2.7.x (such as the one
> found on redhat 5.0), but does not work with egcs as found on rh 5.2 and
> up. The problem is also there with the latest CVS snapshot.

Thanks for your bug report. This is a known bug, and it is caused by
the -fvtable-thunks implementation. It does not occur when compiling
with -fno-vtable-thunks; unfortunately, you cannot do this on Linux
since it would require recompiling glibc as well.

I've been working on a patch for it for quite some time now; the most
recent version of this patch is in

http://gcc.gnu.org/ml/gcc-patches/2000-02/msg00934.html

That patch operates on top of 2.95.2 (actually, on the release branch
2.95.3); it does not work on top of the mainline compiler.

If you do test it, please let me know whether it works.

Regards,
Martin


More information about the Gcc-bugs mailing list