[prev in list] [next in list] [prev in thread] [next in thread] 

List:       gcc-bugs
Subject:    Re: Problem with virtual inheritance and virtual functions
From:       "Martin v. Loewis" <martin () loewis ! home ! cs ! tu-berlin ! de>
Date:       2000-02-29 19:26:11
[Download RAW message or body]

> How does this affects compatibility with the rest of a linux distribution
> ? I have already recompiled glibc for other projects
> (http://www.solucorp.qc.ca/virtualfs)

The binaries you get with this glibc version will be incompatible with
other Linux distributions, unless you link glibc statically.

> Any pointer on this vtable-thunks concept ? (I just read it in the
> info page though)

My patch has a change to gxxint.texi, which explains the internals of
vtable thunks.

> > 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.
> 
> I will look at the patch. Will it work on 2.96, the last version in the
> CVS tree.

Was that a question? No, as I said - it won't work with the CVS
mainline, it is for 2.95 only.

> Yes I will. Our project is stuck with redhat 5.0 and we would like
> to move on.

In case this isn't clear so far, there is an easy solution: Do not
call virtual functions in a constructor, or arrange the calls to be
non-virtual. That way, you avoid the bug.

Regards,
Martin

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic