[fpc-pascal] Bug in enumerators 2.6.4

hinstance at yandex.ru hinstance at yandex.ru
Sat Mar 22 22:34:02 CET 2014


What you do this for? Using override directive makes no sense in this case, so I suggest you just don't use it. If you don't use it, the descendant enumerator will still work like intended

22.03.2014, 20:21, "Torsten Bonde Christiansen" <tc at epidata.dk>:
> Hi List.
>
> I think i have found a bug related to enumerators, overridden methods and forward declared classes.
>
> Please consider the code listed here:
> http://pastebin.com/8EkVDG5n
>
> The problem seem to be that the a descendant enumerator class overriding a virtual method cannot
> return a class which i only forward declared.
>
> If the TFoo and TBar classes are moved above the TBarListEnumerator the code compiles without
> any problem.
>
> Should I add this to the bugtracker?
>
> Regards
> Torsten Bonde Christiansen.
>
> ps. my compiler details:
>
> torsten at epidata:~$ ppcx64 -i
> Free Pascal Compiler version 2.6.4
>
> Compiler Date      : 2014/03/12
> Compiler CPU Target: x86_64
>
> ,
> _______________________________________________
> fpc-pascal maillist  -  fpc-pascal at lists.freepascal.org
> http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal



More information about the fpc-pascal mailing list