From: "Campbell, Rolf [SKY:1U32:EXCH]" Newsgroups: comp.os.msdos.djgpp Subject: Re: covariant return types Date: Fri, 13 Aug 1999 14:43:32 -0400 Organization: Nortel Networks Lines: 22 Message-ID: <37B46754.1B4687C0@americasm01.nt.com> References: <934394159 DOT 15217 AT www DOT remarq DOT com> <7p1ev2$2kb$1 AT nnrp1 DOT deja DOT com> NNTP-Posting-Host: bmerhc00.ca.nortel.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Mailer: Mozilla 4.7 [en] (X11; I; HP-UX B.10.20 9000/712) X-Accept-Language: en To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Dietmar Kuehl wrote: > This code does, of course, not compile! But the problem is not that > covariant return types are not implemented but rather that there are > two semicolon missing in this code. I don't know what version of gcc > the current djgpp is based on but gcc support covariant returns since > quite a while (I think covariant returns where in prior to gcc-2.7.2). Thus, > I would expect that it does support this stuff. However, it apparently has > problems in more complex cases: > > class foo { virtual foo* clone(); }; > class bar { virtual bar* clone(); }; > class foobar: virtual foo, virtual bar { foobar* clone(); }; > This does not zet work. Have you tried it in v2.95? -- -Rolf Campbell (39)3-6318