Signatures (C++ extension)
Alfred Perlstein
bright@rush.net
Wed Jun 30 15:43:00 GMT 1999
On Sun, 20 Jun 1999, IvO wrote:
> Hi,
> I am using the signature extension of egcs (compile with
> -fhandle-signatures).
> It works, but i does not honor virtual functions, i.e.
>
> If I instantiate a pointer to the signature class via a pointer to one
> of my base classes (but the pointer is really pointing to a derived
> object) when calling any of the signature functions what is actually
> calles is the base class function, not the derived one (yes, I declared
> the function as virtual in the base and derved).
> The only way to get the derived function to be called trough the
> signature is by assigning to the signature class a pointer to the
> derived class, which is awful and makes signatures useless for my
> purposes.
>
> Does anybody know if this the way it should be? am I missing something?
>
> I am using:
>
> Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/egcs-2.90.29/specs
> gcc version egcs-2.90.29 980515 (egcs-1.0.3 release)
Someone else replied that they can't reproduce the problem you have,
they were using a much more recent version of egcs than you have installed.
you have a version over a year old, why not upgrade to a more recent
version? It seems it may be fixed in newer versions.
-Alfred Perlstein - [bright@rush.net|bright@wintelcom.net]
systems administrator and programmer
Win Telecom - http://www.wintelcom.net/
More information about the Gcc
mailing list