[fpc-pascal] Empty Set in constants in generics

2020-05-03 Thread Ryan Joseph via fpc-pascal
Should generics accept empty sets as constants? I think they should and this is a bug but I wanted to ask first. {$mode objfpc} program test; type TItem = (A, B, C); TItems = set of TItem; generic GType = class end; const TOtherItems = []; // no problems h

Re: [fpc-pascal] Empty Set in constants in generics

2020-05-04 Thread Sven Barth via fpc-pascal
Ryan Joseph via fpc-pascal schrieb am Mo., 4. Mai 2020, 18:48: > Should generics accept empty sets as constants? I think they should and > this is a bug but I wanted to ask first. > > > > {$mode objfpc} > > program test; > > type > TItem = (A, B, C); > TItems = set of

Re: [fpc-pascal] Empty Set in constants in generics

2020-05-04 Thread Ryan Joseph via fpc-pascal
> On May 5, 2020, at 1:03 AM, Sven Barth wrote: > > Yes, they should indeed. > https://bugs.freepascal.org/view.php?id=37020 Found another one yesterday also but it's a crash https://bugs.freepascal.org/view.php?id=37014 I think it's a PPU problem. Regards, Ryan Joseph _