[fpc-pascal] Bug in enumerators 2.6.4

Marco van de Voort marcov at stack.nl
Sat Mar 22 17:33:21 CET 2014


In our previous episode, Torsten Bonde Christiansen said:
> 
> 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?

Yes. The code with Tfoo and TBar above also shouldn't not compile, at least
not in Delphi mode.



More information about the fpc-pascal mailing list