[fpc-pascal] Array range overflow in properties

Sven Barth pascaldragon at googlemail.com
Fri Apr 30 07:22:20 CEST 2021


Am 29.04.2021 um 20:14 schrieb Ryan Joseph via fpc-pascal:
> Is this a bug in properties and I should be getting an error?
>
> type
> 	TPixel = record
> 	  components: array[0..3] of byte;
> 	  property R: byte read components[10] write components[10];
> 	end;
Well, there should *at least* be a warning and an error if range checks 
are enabled... Please file a bug report.

Regards,
Sven


More information about the fpc-pascal mailing list