[fpc-pascal] Syntax error with new FPC SVN

Paul Ishenin webpirat at mail.ru
Fri Sep 30 18:27:09 CEST 2011


30.09.2011 23:06, Jonas Maebe wrote:
>> old code working with 2.5.1 from June writes:
>>
>> TYPE TByteSet = set of Byte(0)..Byte(7);
>>
>>>> Fatal: Syntax error, ";" expected but "(" found
>>
>> What has changed on syntax for this definition?
>>
>> PS: I use {$MODE Delphi} switch.
> I have updated my FPC to SVN from today and when I try to compile my
>
> It's the byte() typecasts that trigger the error message, but that's 
> definitely quite a serious bug. Please file a bug report at 
> http://bugs.freepascal.org so it doesn't get forgotten.

This is probably my fault although:
   1. delphi does not support such declarations
   2. we don't have a test for this kind of syntax

So maybe we had a feature by accident? Should I restore that behavior?

Best regards,
Paul Ishenin.



More information about the fpc-pascal mailing list