Mail Archives: djgpp/1999/08/13/18:26:23
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
- Raw text -