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@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@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal