[fpc-pascal] Bug in enumerators 2.6.4

Torsten Bonde Christiansen tc at epidata.dk
Fri Mar 21 09:31:12 CET 2014


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


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20140321/52ddcd6a/attachment.html>


More information about the fpc-pascal mailing list