[Lazarus] Runtime error: INCLOCKED (BUG)

Valdas Jankūnas zmuogs at gmail.com
Fri May 18 11:35:00 CEST 2018


2018-05-11 12:36, Santiago A. via Lazarus rašė:
> Yes, but I think that it should be considered a FPC bug
> 
>    TList = array of TElement;
>    Plist = ^TList;
> 
>    TSetting = record
>        list: Plist;
>    end;
> 
> const
>    _List: array [0..1] of TElement = (
>        (strr: 'a'),
>        (strr: 'b'));
> 
>    _Settings: array [0..0] of TSetting = (
>        (list: @_List)); //  <=== This line should rise a compiler error.
> You are asigning a pointer to an static array to a pointer to a dynamic
> array.

Reported: https://bugs.freepascal.org/view.php?id=33757

-- 
   Valdas Jankūnas


More information about the Lazarus mailing list