Re: [fpc-pascal] Parser bug or what?

2013-09-15 Thread Daniel Gaspary
I cannot update my Environment at the moment, so I will just close the bug.

Thank you, Paul

On Sun, Sep 15, 2013 at 11:52 PM, Paul Ishenin  wrote:
> 15.09.13, 21:14, Daniel Gaspary wrote:
>>
>> On Sun, Sep 15, 2013 at 6:37 AM, Sven Barth 
>> wrote:
>>>
>>> Seems to be a bug related to scoped enums (in your example that would be
>>> "TMyEnum.me1"). Please report it as a bug with the example mentioned
>>> above
>>> as a file.
>>
>>
>> Done: http://bugs.freepascal.org/view.php?id=25029
>
>
> Fixed in r25493. The fix also helped to find a bug in fpmake.pp which is
> used to compile a52 package.
>
> Thank you.
>
> Best regards,
> Paul Ishenin
>
>
> ___
> fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
> http://lists.freepascal.org/mailman/listinfo/fpc-pascal
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] Parser bug or what?

2013-09-15 Thread Paul Ishenin

15.09.13, 21:14, Daniel Gaspary wrote:

On Sun, Sep 15, 2013 at 6:37 AM, Sven Barth  wrote:

Seems to be a bug related to scoped enums (in your example that would be
"TMyEnum.me1"). Please report it as a bug with the example mentioned above
as a file.


Done: http://bugs.freepascal.org/view.php?id=25029


Fixed in r25493. The fix also helped to find a bug in fpmake.pp which is 
used to compile a52 package.


Thank you.

Best regards,
Paul Ishenin

___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] Parser bug or what?

2013-09-15 Thread Daniel Gaspary
On Sun, Sep 15, 2013 at 6:37 AM, Sven Barth  wrote:
> Seems to be a bug related to scoped enums (in your example that would be
> "TMyEnum.me1"). Please report it as a bug with the example mentioned above
> as a file.

Done: http://bugs.freepascal.org/view.php?id=25029

Thank you.
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] Parser bug or what?

2013-09-15 Thread Sven Barth

On 15.09.2013 03:55, Daniel Gaspary wrote:

Can anybody tell me whether I stepped on a bug  or I am just
forgetting some Set / Enum property?

I made a Set to iterate with For..in, but I accidentally used a Dot
instead of a Comma between the elements.

The result was that the For "sees" only the item(s) after the Dot as the Example

What's Happening in the example ??

program Project1;
type
 TMyEnum = (me1, me2, me3);
 TMyEnumSet = set of TMyEnum;
var
e: TMyEnum;
begin
  for e in [me1 . me2] do  //It's a dot, not a comma
  WriteLn(e);
end.

It works with other combinations, like:

[me1 . me2. me3.]  // DOT DOT DOT
[me1 , me2. me3.]  // COMMA DOT DOT

My FPC version: 2.7.1 [2013/03/26] for x86_64


Seems to be a bug related to scoped enums (in your example that would be 
"TMyEnum.me1"). Please report it as a bug with the example mentioned 
above as a file.


Regards,
Sven

___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


[fpc-pascal] Parser bug or what?

2013-09-14 Thread Daniel Gaspary
Can anybody tell me whether I stepped on a bug  or I am just
forgetting some Set / Enum property?

I made a Set to iterate with For..in, but I accidentally used a Dot
instead of a Comma between the elements.

The result was that the For "sees" only the item(s) after the Dot as the Example

What's Happening in the example ??

program Project1;
type
TMyEnum = (me1, me2, me3);
TMyEnumSet = set of TMyEnum;
var
   e: TMyEnum;
begin
 for e in [me1 . me2] do  //It's a dot, not a comma
 WriteLn(e);
end.

It works with other combinations, like:

[me1 . me2. me3.]  // DOT DOT DOT
[me1 , me2. me3.]  // COMMA DOT DOT

My FPC version: 2.7.1 [2013/03/26] for x86_64
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal