Hi all I have compiled gpc-20020304 with djgpp I found a (new ?) bug given by the following simple program: ---------------------------------------------------------------- program TestSize; type tR = object constructor init; function Size: integer; virtual; destructor fini; end; constructor tR.init; begin end; function tR.Size: integer; begin Size := 1 end; destructor tR.fini; begin end; begin end. --------------------------------------------------------------- Compilation fails with the message: TestSize.pas:7: duplicate field `Size' TestSize.pas:7: excess elements in record initializer after `vmt_Tr' "Virtual" is essential. Has Size become an hidden identifier (size of the vmt ?) Maurice -- Maurice Lombardi Laboratoire de Spectrometrie Physique, Universite Joseph Fourier de Grenoble, BP87 38402 Saint Martin d'Heres Cedex FRANCE Tel: 33 (0)4 76 51 47 51 Fax: 33 (0)4 76 63 54 95 mailto:Maurice.Lombardi@ujf-grenoble.fr
participants (2)
-
Frank Heckenbach -
Maurice Lombardi