This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Covariant returns?
- To: mrs at windriver dot com
- Subject: Re: Covariant returns?
- From: "Martin v. Loewis" <martin at loewis dot home dot cs dot tu-berlin dot de>
- Date: Tue, 7 Mar 2000 09:19:21 +0100
- CC: cheath at umich dot edu, gcc at gcc dot gnu dot org
- References: <200003070439.UAA13241@kankakee.wrs.com>
> No, the problem you're seeing is much worse and harder for us to fix.
> That is the correct output from the compiler. Only your understanding
> of C++ is flawed.
It seems my understanding of C++ is flawed, too. Can you elaborate why
the compiler is acting correctly for his example? I'd assume it is a
bug in the compiler to return a C* from a method that statically
returns a B*.
Martin