This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Covariant returns?
- To: gcc at gcc dot gnu dot org
- Subject: Covariant returns?
- From: Chris Heath <cheath at umich dot edu>
- Date: Mon, 6 Mar 2000 21:54:15 -0500 (EST)
I'm wondering if covariant returns are going to be implemented anytime
soon... I looked on the known bugs page, but I didn't see anything
about it.
Try compiling this:
struct A {
virtual A* Clone();
};
struct B : public virtual A {
virtual B* Clone();
};
The result:
x.cpp:7: sorry, not implemented: adjusting pointers for covariant returns
I'm using gcc version 2.95.2 19991024 (release).
Chris Heath